1
0
mirror of https://github.com/Z4nzu/hackingtool.git synced 2025-06-20 06:15:54 +02:00

os.path.expanduser("~/hackingtoolpath.txt")

This commit is contained in:
Christian Clauss
2023-07-18 12:34:07 +02:00
committed by GitHub
parent 946151b211
commit 4e2e76935e

View File

@ -74,9 +74,7 @@ class AllTools(HackingToolsCollection):
if __name__ == "__main__": if __name__ == "__main__":
try: try:
if system() == 'Linux': if system() == 'Linux':
# Testing platforms like GitHub Actions define a $CI environment variable os.path.expanduser("~/hackingtoolpath.txt")
print(f'{os.getenv("CI") = }')
fpath = "/tmp/hackingtoolpath.txt" # if os.getenv("CI") else "/home/hackingtoolpath.txt"
if not os.path.exists(fpath): if not os.path.exists(fpath):
os.system('clear') os.system('clear')
# run.menu() # run.menu()