pylaunchd
pylaunchd copied to clipboard
invalid escape sequence s
Correct code
python3 pylaunchd_gui.py
/Users/abkrim/Applications/pylaunchd/pylaunchd_gui.py:379: SyntaxWarning: invalid escape sequence '\s'
paths = re.findall('^\s+path =\s(.*$)', details, re.MULTILINE)
/Users/abkrim/Applications/pylaunchd/pylaunchd_gui.py:383: SyntaxWarning: invalid escape sequence '\s'
states = re.findall('^\s+state =\s(.*$)', details, re.MULTILINE)
Best regards
can you please provide the output of running sw_vers and python3 -V from the terminal?
sw_vers
ProductName: macOS
ProductVersion: 14.4.1
BuildVersion: 23E224
python3 -V
Python 3.12.2
thanks @abkrim! haven't yet validated it to work as expected on sonoma. Apple do mention that the output of launchctl should not be relied on and that the shape of the data might change in future macos versions, and it looks that this is what happened here; it will take additional investigation to make sure it works with both the new and previous macos versions.