mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2024-12-02 17:29:10 +00:00
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:
parent
54d7bfef50
commit
22a944d4eb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue