[CODE title="Terminal" highlight="23-36"]import os
import time
while True:
time.sleep(0.1)
command = str(input("<> "))
if command == "console.exit":
exit()
elif command == "console.quit":
exit()
elif command == "connect.file":
dir = str(input("<Directionary> "))
if dir == "return":
dir = dir
elif os.path.exists(dir):
islem = str(input("<" + dir + "> "))
if islem == "remove":
os.remove(dir)
elif islem == "open":
os.system("start " + dir)
else:
print(" File don't exist.")
elif command == "download":
islem = str(input("<Server> "))
if islem == "return":
islem = islem
else:
islem2 = str(input("<File> "))
if islem2 == "return":
islem2 = islem2
else:
islem3 = str(input("<Download Directionary> "))
if islem3 == "return":
islem3 = islem3
else:
os.system(islem + " install " + islem2 + " --installPath "+ islem3)
else:
print(" Command don't exist.")[/CODE]
Yukarıdaki terminal programını çalıştırınca "download" komutu çalışmıyor. "File Path" ile ilgili bir durum sanırım. Nasıl çözebilirim?
import time
while True:
time.sleep(0.1)
command = str(input("<> "))
if command == "console.exit":
exit()
elif command == "console.quit":
exit()
elif command == "connect.file":
dir = str(input("<Directionary> "))
if dir == "return":
dir = dir
elif os.path.exists(dir):
islem = str(input("<" + dir + "> "))
if islem == "remove":
os.remove(dir)
elif islem == "open":
os.system("start " + dir)
else:
print(" File don't exist.")
elif command == "download":
islem = str(input("<Server> "))
if islem == "return":
islem = islem
else:
islem2 = str(input("<File> "))
if islem2 == "return":
islem2 = islem2
else:
islem3 = str(input("<Download Directionary> "))
if islem3 == "return":
islem3 = islem3
else:
os.system(islem + " install " + islem2 + " --installPath "+ islem3)
else:
print(" Command don't exist.")[/CODE]
Yukarıdaki terminal programını çalıştırınca "download" komutu çalışmıyor. "File Path" ile ilgili bir durum sanırım. Nasıl çözebilirim?