poiuyqwert / PyMS

Broodwar Modding Suite
47 stars 18 forks source link

Importing PyMS changes the current working directory of the module #128

Closed sethmachine closed 1 year ago

sethmachine commented 5 years ago

Hi,

After importing PyMS, it sets the CWD to the Python site packages. This is a side effect that should not happen:

import os
print(os.getcwd())
import pyms.CHK
print(os.getcwd())

Output:

/Users/sethmachine/Desktop/starcraft/demon-lore /Users/sethmachine/miniconda3/envs/demon-lore/lib/python3.7/site-packages