query: Have a python script always reference the same directory regardless of where it's run in the system
positive_passages.docid: 12149
positive_passages.text: How do I get the path and name of the file that is currently executing?
negative_passages.docid: 135455
negative_passages.text: Bash script callable from home but not scripts directory
negative_passages.docid: 86778
negative_passages.text: Python won't exit when called with absolute path from cron or subshell
negative_passages.docid: 71933
negative_passages.text: How do I run all Python unit tests in a directory?
negative_passages.docid: 35846
negative_passages.text: Short-cut for switching to a given directory
negative_passages.docid: 151216
negative_passages.text: Is there a nice way to set directory/project local environment variables?
negative_passages.docid: 144996
negative_passages.text: How do I get the path my script is running in?
negative_passages.docid: 135143
negative_passages.text: Use system command instead of Bash builtin without specifying the full path
negative_passages.docid: 96802
negative_passages.text: Why are scripts in /etc/profile.d/ being ignored (system-wide bash aliases)?
negative_passages.docid: 130208
negative_passages.text: How do I change $PATH and set it to the default directory?
negative_passages.docid: 8389
negative_passages.text: How do I create a permanent Bash alias?
negative_passages.docid: 35098
negative_passages.text: Adding a directory to the PATH environment variable in Windows
negative_passages.docid: 3240
negative_passages.text: Run a web server from any directory
negative_passages.docid: 51749
negative_passages.text: What's the best way to determine the location of the current PowerShell script?
negative_passages.docid: 123738
negative_passages.text: Automatically rename files when they are placed in a specific directory
negative_passages.docid: 68600
negative_passages.text: How to permanently set environmental variables
negative_passages.docid: 113748
negative_passages.text: Is it possible to change the Environment of a parent process in Python?