1
0
mirror of https://github.com/Z4nzu/hackingtool.git synced 2025-06-20 06:15:54 +02:00

Fix Error

This commit is contained in:
Mr.Z4nzu
2020-04-15 22:02:40 +05:30
committed by GitHub
parent 366dbcd453
commit 34889162c8

View File

@ -1529,20 +1529,21 @@ def clearScr():
if __name__ == "__main__": if __name__ == "__main__":
try: try:
if system() == 'Linux': if system() == 'Linux':
os.chdir("/home/") if path.exists("/home/")
if os.path.isdir('hackingtool'): os.chdir("/home/")
os.chdir("/home/hackingtool/") if os.path.isdir('hackingtool'):
menu() os.chdir("/home/hackingtool/")
else : menu()
os.system("mkdir hackingtool") else :
menu() os.system("mkdir hackingtool")
if system() == 'android': menu()
elif path.exists('/data'):
os.chdir("data/data/com.termux/files/home/") os.chdir("data/data/com.termux/files/home/")
if os.path.isdir('hackingtool'): if os.path.isdir('hackingtool'):
os.chdir("data/data/com.termux/files/home/hackingtool/") os.chdir("data/data/com.termux/files/home/hackingtool/")
menu() menu()
else : else :
os.system("mkdir hackingtool") os.system("mkdir hackingtoolstore")
menu() menu()
except KeyboardInterrupt: except KeyboardInterrupt:
print(" Sorry ..!!!") print(" Sorry ..!!!")