rr- / screeninfo

Fetch location and size of physical screens.
Other
208 stars 36 forks source link

customdisplayprofiles current-path not work #64

Closed carlosfernandezcabrero closed 2 years ago

carlosfernandezcabrero commented 2 years ago

Hi,

When i execute this code in python, the program return this message:

Python Code

colorProfilePath = subprocess.check_output("./customdisplayprofiles current-path", shell=True)

Error

/bin/sh: ./customdisplayprofiles: No such file or directory
Traceback (most recent call last):
  File "/Users/carlosfernandezcabrero/Desktop/useful-scripts/monitors-resolution.py", line 9, in <module>
    colorProfilePath = subprocess.check_output("./customdisplayprofiles current-path", shell=True)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 424, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 528, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command './customdisplayprofiles current-path' returned non-zero exit status 127.

Operating System: macOS Operating System Version: macOS Monterey 12.1 Python Version: 3.9.9 Package Version: 0.8

Regards thank you very much

rr- commented 2 years ago

I don't think this problem is related to this project.

carlosfernandezcabrero commented 2 years ago

I resolve this issue, i make the script with node and javascript, you can close this issue.

Regards thank you very much