it is your $HOME
var in UNIX, which usually is /home/username
.
“Your home” meaning the home of the user who’s executing a command like cd ~/MyDocuments/
is cd /home/user_executing_cd_commnd/MyDocuments
More Related Contents:
- How can I safely create a nested directory?
- Windows path in Python
- Importing modules from parent folder
- Relative paths in Python
- How to get an absolute file path in Python
- Find full path of the Python interpreter?
- mkdir -p functionality in Python [duplicate]
- os.makedirs doesn’t understand “~” in my path
- Why am I getting a FileNotFoundError?
- pip freeze creates some weird path instead of the package version
- Python pip install module is not found. How to link python to pip location?
- Open file in a relative location in Python
- Why doesn’t os.path.join() work in this case?
- Set up Python on Windows to not type “python” in cmd
- Python: Platform independent way to modify PATH environment variable
- Too many different Python versions on my system and causing problems
- How to configure Atom to run Python3 scripts?
- How can I troubleshoot Python “Could not find platform independent libraries “
- How do I read an image from a path with Unicode characters?
- Import from sibling directory
- Python: import module from another directory at the same level in project hierarchy
- python subprocess Popen environment PATH?
- Platform-independent file paths?
- set pythonpath before import statements
- constructing absolute path with os.path.join()
- Changing the directory where .pyc files are created
- How to remove bad path characters in Python?
- How can I import files in Python using sys.path.append?
- Python not able to open file with non-english characters in path
- How do I import a Python script from a sibling directory?