Merge pull request #290 from furknozg/SyntaxFix

Syntax Fix for older versions of python
This commit is contained in:
Hardik Zinzuvadiya 2022-12-03 22:17:23 +05:30 committed by GitHub
commit 8af26be04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
hackingtool.py Normal file → Executable file
View File

@ -89,12 +89,12 @@ if __name__ == "__main__":
inpath = input("Enter Path (with Directory Name) >> ") inpath = input("Enter Path (with Directory Name) >> ")
with open(fpath, "w") as f: with open(fpath, "w") as f:
f.write(inpath) f.write(inpath)
print(f"Successfully Set Path to: {inpath}") print("Successfully Set Path to: {}".format(inpath))
elif choice == "2": elif choice == "2":
autopath = "/home/hackingtool/" autopath = "/home/hackingtool/"
with open(fpath, "w") as f: with open(fpath, "w") as f:
f.write(autopath) f.write(autopath)
print(f"Your Default Path Is: {autopath}") print("Your Default Path Is: {}".format(autopath))
sleep(3) sleep(3)
else: else:
print("Try Again..!!") print("Try Again..!!")