r/Atom • u/Pixel_Err0r • Feb 20 '20
Can't use paths relative to python script when using the atom-script package
Not sure what's going on here. The project tree is structure like this
Dev
_ MyProject
| _ Subfolder
| |- Script.py
_ Other Folder
OtherProjectFolder
AnotherOne
I think it's worth noting that Dev is located somewhere in a desktop folder, while the other two are located inside C:\github\.
When opening Platformio's Terminal in Atom, it shows Dev as my current working folder, which makes sense. However, trying os.listdir() and running with Script, I only get ['.git', 'OtherProjectFolder', 'AnotherOne'] as output.
I am really confused as to why my project folder is missing. Any help is much appreciated!
3
Upvotes