From 562d50c9017130b01460366102ce933a47b9f2a8 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 18 Jul 2023 12:29:56 +0200 Subject: [PATCH] Use os.path.expanduser() --- hackingtool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hackingtool.py b/hackingtool.py index b8248d43..88dbf02a 100755 --- a/hackingtool.py +++ b/hackingtool.py @@ -74,7 +74,7 @@ def show_info(self): 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()