Merge pull request #47 from allfro/patch-2

Fixed ~ expansion bug
This commit is contained in:
trustedsec 2014-02-19 18:05:45 -05:00
commit 515659a8e3

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