atom-community / atom-community/atom-script

Os.path doesn't update in the case of python

Open
#1,513 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
730
Forks
264
PR merge metrics
No merged PRs in 30d

Description

When using os.path.abspath() it uses the first folder to grab the path for some odd reason. However, I want it to grab the path where the script is run, which is exactly what this line of code is supposed to do. Somehow, the Atom script api tries to reference the first folder as the source of the script instead of the proper folder. This hurts my workflow as I like to have several project folders at once in atom and it won't properly discern between the different project folders. It uses the "project folder" but not the folder where the specific file is located, which in this case when I add project folders it doesn't update properly.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.