To fix a problem in code for work, I was told to "use a path relative to ~". What does ~ mean in a file path? How can I make a path that is relative to ~, and use that path to open files in Python?
To fix a problem in code for work, I was told to "use a
Share
it is your
$HOMEvar in UNIX, which usually is/home/username.“Your home” meaning the home of the user who’s executing a command like
cd ~/MyDocuments/iscd /home/user_executing_cd_commnd/MyDocuments