pylaunchd icon indicating copy to clipboard operation
pylaunchd copied to clipboard

invalid escape sequence s

Open abkrim opened this issue 1 year ago • 3 comments

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

abkrim avatar Mar 29 '24 15:03 abkrim

can you please provide the output of running sw_vers and python3 -V from the terminal?

glowinthedark avatar Apr 03 '24 19:04 glowinthedark

sw_vers
ProductName:		macOS
ProductVersion:		14.4.1
BuildVersion:		23E224
python3 -V
Python 3.12.2

abkrim avatar Apr 04 '24 05:04 abkrim

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.

glowinthedark avatar Apr 04 '24 10:04 glowinthedark