From 4e2e76935ed4c09b8f273dd26a7a075127e24e94 Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Tue, 18 Jul 2023 12:34:07 +0200 Subject: [PATCH] os.path.expanduser("~/hackingtoolpath.txt") --- hackingtool.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hackingtool.py b/hackingtool.py index 20b9778..68ac0a7 100755 --- a/hackingtool.py +++ b/hackingtool.py @@ -74,9 +74,7 @@ class AllTools(HackingToolsCollection): if __name__ == "__main__": try: if system() == 'Linux': - # Testing platforms like GitHub Actions define a $CI environment variable - print(f'{os.getenv("CI") = }') - fpath = "/tmp/hackingtoolpath.txt" # if os.getenv("CI") else "/home/hackingtoolpath.txt" + os.path.expanduser("~/hackingtoolpath.txt") if not os.path.exists(fpath): os.system('clear') # run.menu()