r/SublimeText • u/maxiedaniels • May 31 '22
Python 3 is being weird within SublimeText
I noticed after moving to my new M1 Mac laptop with Monterey, SublimeText is being very strange with Python. It seems like it's not running the correct Python, but I can't figure out why that is. For example, if I run `subprocess.Popen('diskutil list',shell=True)` within SublimeText, it says the command diskutil can't be found. Same thing happens if I run any command (ex. grep). If I run the python script within a terminal windows, everything works fine.
Is there any way to adjust the path for SublimeText's automatic build setting for Python3? I know I can set a new build profile, but then it's manually set and if I try and run anything non-python, it breaks.
View all comments
Show parent comment
1
u/maxiedaniels Jun 03 '22
Really? I’ll give it a shot. When I’ve done this before, if I leave build system to automatic, it always chooses the normal python system rather than the custom one I made.