From 4e35ff8db7ff161446d9cc0df99b7c64c8041163 Mon Sep 17 00:00:00 2001 From: "Mr.Z4nzu" Date: Tue, 30 Jun 2020 17:18:55 +0530 Subject: [PATCH] Update hackingtool.py --- hackingtool.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/hackingtool.py b/hackingtool.py index fe36f12..df563a0 100644 --- a/hackingtool.py +++ b/hackingtool.py @@ -1677,15 +1677,25 @@ if __name__ == "__main__": os.system("mkdir hackingtool") os.chdir("/home/{0}/Desktop/hackingtool/".format(notuser)) menu() - else : - os.chdir("/home/{0}/Desktop/".format(uname)) + elif uname == 'None': + os.chdir("/home/{0}/Desktop/".format(notuser)) if os.path.isdir('hackingtool'): - os.chdir("/home/{0}/Desktop/hackingtool/".format(uname)) + os.chdir("/home/{0}/Desktop/hackingtool/".format(notuser)) menu() else: os.system("mkdir hackingtool") - os.chdir("/home/{0}/Desktop/hackingtool/".format(uname)) + os.chdir("/home/{0}/Desktop/hackingtool/".format(notuser)) menu() + else : + if path.exists("/home/{0}/Desktop/".format(uname)): + os.chdir("/home/{0}/Desktop/".format(uname)) + if os.path.isdir('hackingtool'): + os.chdir("/home/{0}/Desktop/hackingtool/".format(uname)) + menu() + else: + os.system("mkdir hackingtool") + os.chdir("/home/{0}/Desktop/hackingtool/".format(uname)) + menu() elif uname == 'None': os.chdir("/home/{0}/Desktop/".format(notuser)) if os.path.isdir('hackingtool'): @@ -1706,6 +1716,8 @@ if __name__ == "__main__": os.system("mkdir hackingtool") os.chdir("data/data/com.termux/files/home/hackingtool/") menu() + else : + print("Sorry Open New Issue..!!") except KeyboardInterrupt: print("\n Sorry ..!!!")