Python code unable to read files in same directory as the script


#1

I have a python script located at /myProjectPath/subFolder

It is not able to access files located in the same folder i.e., subFolder
Running the same code from terminal, or from other IDEs (anaconda, pycharm, sublime text) there is no issue.
If I store a new file, it gets created under /myProjectPath rather than /myProjectPath/subFolder

Note: I am accessing my code in Atom by adding /myProjectPath. I have not added /myProjectPath/subFolder using File -> Add Project Folder


#2

What package are you using to run the script? I favor process-palette, which gives precise control over the environment in which the command is run.


#3

I am using script


#4

You can change the current working directory behavior either through the package settings or through setting a profile.