Console: Added cd and mc commands
Continues are used now, also
This commit is contained in:
parent
f06ca5fc99
commit
b000d6567f
@ -338,14 +338,32 @@ def console():
|
||||
if cmd == "exit":
|
||||
return
|
||||
|
||||
if cmd.startswith("cd "):
|
||||
try:
|
||||
os.chdir(cmd[3:])
|
||||
continue
|
||||
except Exception as e:
|
||||
print(e)
|
||||
continue
|
||||
continue
|
||||
|
||||
if cmd.startswith("pyc "):
|
||||
try:
|
||||
exec(cmd[4:])
|
||||
continue
|
||||
except Exception as e:
|
||||
print(e)
|
||||
else:
|
||||
os.system(cmd)
|
||||
continue
|
||||
|
||||
if cmd.startswith("mc "):
|
||||
try:
|
||||
cloneFolder(cmd[3:],cmd[3:] + " - clone",True,False)
|
||||
continue
|
||||
except Exception as e:
|
||||
print(e)
|
||||
continue
|
||||
|
||||
os.system(cmd)
|
||||
|
||||
def setupVariables():
|
||||
global appPath
|
||||
|
Loading…
Reference in New Issue
Block a user