Use os.path.expanduser()

This commit is contained in:
Christian Clauss
2023-07-18 12:29:56 +02:00
committed by GitHub
parent 0df6be72bf
commit 562d50c901
+1 -1
View File
@@ -74,7 +74,7 @@ class AllTools(HackingToolsCollection):
if __name__ == "__main__":
try:
if system() == 'Linux':
fpath = "~/hackingtoolpath.txt"
fpath = os.path.expanduser("~/hackingtoolpath.txt")
if not os.path.exists(fpath):
os.system('clear')
# run.menu()