Skip to content

Commit b3ca91b

Browse files
committed
Handling new config file setup when using pip
1 parent b3d52d0 commit b3ca91b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

datasploit_config.py

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
def edit():
66
config_path = os.path.dirname(__file__)
77
config_file = "%s/config.py" % config_path
8+
if not os.path.exists(config_file):
9+
print "[+] Looks like a new setup, setting up the config file."
10+
os.rename("%s/config_sample.py" % config_path, config_file)
811
fh = open(config_file)
912
config = fh.read()
1013
fh.close()

0 commit comments

Comments
 (0)