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__":
try:
if system() == 'Linux':
os.chdir("/home/")
if os.path.isdir('hackingtool'):
os.chdir("/home/hackingtool/")
menu()
else :
os.system("mkdir hackingtool")
menu()
if system() == 'android':
if path.exists("/home/")
os.chdir("/home/")
if os.path.isdir('hackingtool'):
os.chdir("/home/hackingtool/")
menu()
else :
os.system("mkdir hackingtool")
menu()
elif path.exists('/data'):
os.chdir("data/data/com.termux/files/home/")
if os.path.isdir('hackingtool'):
os.chdir("data/data/com.termux/files/home/hackingtool/")
menu()
else :
os.system("mkdir hackingtool")
os.system("mkdir hackingtoolstore")
menu()
except KeyboardInterrupt:
print(" Sorry ..!!!")