Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@nickie
Copy link

@nickie nickie commented Apr 23, 2016

Python's os.path.abspath uses os.getcwd to convert paths to absolute paths. This is not what we want for the MacOS wrapper script because, when this is called, the current working directory has already been changed. The PWD environment variable should be used instead, which contains the user's current working directory at the time she invoked the application.

I also took the liberty to clean up the script a little bit...

@yousseb
Copy link
Owner

yousseb commented Apr 23, 2016

Thanks. This script was made in a hassle really and I wasn't too proud of what I've made into it to start with. The whole point was to allow people to be able to easily modify it as the bash script was too long and harder to fix. This patch proved the point right. :)

@yousseb yousseb merged commit f84697c into yousseb:master Apr 23, 2016
@nickie nickie deleted the fix-rel-paths branch April 23, 2016 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants