mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-05-19 21:01:20 +02:00
Use HOME env variable on Mac
instead of trying to reconstruct it possibly incorrectly. Fixes #60
This commit is contained in:
parent
f8f562b742
commit
825d25246e
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ func careful_delete(path_inside):
|
|||
if os == "X11":
|
||||
expected_prefix = "/home/%s/.local/share/Oh My Git/tmp/" % OS.get_environment("USER")
|
||||
elif os == "OSX":
|
||||
expected_prefix = "/Users/%s/Library/Application Support/Oh My Git/tmp/" % OS.get_environment("USER")
|
||||
expected_prefix = "%s/Library/Application Support/Oh My Git/tmp/" % OS.get_environment("HOME")
|
||||
elif os == "Windows":
|
||||
expected_prefix = "C:/Users/%s/AppData/Roaming/Oh My Git/tmp/" % OS.get_environment("USERNAME")
|
||||
# Windows treats paths case-insensitively:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue