-
Notifications
You must be signed in to change notification settings - Fork 0
/
_create.py
27 lines (24 loc) · 940 Bytes
/
_create.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import sys
import os
directoryPath = os.path.dirname(os.path.abspath(__file__))
argvL = sys.argv
argvLen = len(argvL)
cwd = os.getcwd()
if argvLen == 1:
newCwd = "{0}\\Hack".format(cwd)
os.chdir("{0}".format(cwd))
os.system("mkdir Hack")
os.chdir("{0}".format(newCwd))
os.system("copy {0}\\autoHack.infinite.py {1}".format(directoryPath,newCwd))
os.system("copy {0}\\autoHack.random.py {1}".format(directoryPath,newCwd))
os.system("copy {0}\\dataGenerator.py {1}".format(directoryPath,newCwd))
os.system("cls")
elif argvLen == 2:
newCwd = "{0}\\Hack-{1}".format(cwd,argvL[1])
os.chdir("{0}".format(cwd))
os.system("mkdir Hack-{0}".format(argvL[1]))
os.chdir("{0}".format(newCwd))
os.system("copy {0}\\autoHack.infinite.py {1}".format(directoryPath,newCwd))
os.system("copy {0}\\autoHack.random.py {1}".format(directoryPath,newCwd))
os.system("copy {0}\\dataGenerator.py {1}".format(directoryPath,newCwd))
os.system("cls")