Skip to content

Commit

Permalink
Handling new config file setup when using pip
Browse files Browse the repository at this point in the history
  • Loading branch information
KunalAggarwal committed Jul 25, 2017
1 parent b3d52d0 commit b3ca91b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions datasploit_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
def edit():
config_path = os.path.dirname(__file__)
config_file = "%s/config.py" % config_path
if not os.path.exists(config_file):
print "[+] Looks like a new setup, setting up the config file."
os.rename("%s/config_sample.py" % config_path, config_file)
fh = open(config_file)
config = fh.read()
fh.close()
Expand Down

0 comments on commit b3ca91b

Please sign in to comment.