Fixed ~ expansion bug

In Mac OS X '~' will not expand to the user directory. Instead, a directory by the name of '~' will be created. This patch fixes this issue.
This commit is contained in:
allfro 2014-02-12 01:41:04 -05:00
parent 54d7bfef50
commit 22a944d4eb

View file

@ -1386,7 +1386,7 @@ def start_dns():
# the main ~./set path for SET
def setdir():
if check_os() == "posix":
return os.getenv("HOME") + "/.set"
return os.path.join(os.path.expanduser('~'), '.set')
if check_os() == "windows":
return "src/program_junk/"
# set the main directory for SET