Merge pull request #46 from allfro/patch-1

Fixed ~ expansion bug
This commit is contained in:
trustedsec 2014-02-19 18:04:42 -05:00
commit 7475188b96

View file

@ -54,8 +54,9 @@ if operating_system == "posix":
# create the set variables
os.makedirs(setdir)
# if for some reason it failed to pull the path
if not os.path.isdir("~/.set/"):
os.makedirs("~/.set/")
userdir = os.path.join(os.path.expanduser('~'), '.set')
if not os.path.isdir(userdir):
os.makedirs(userdir)
if not os.path.isdir(setdir + "/reports/"):