Browse Source

also use tempdir for .exo_node_id to keep the dir clean

Alex Cheema 7 months ago
parent
commit
4923eb7e44
1 changed files with 1 additions and 1 deletions
  1. 1 1
      exo/helpers.py

+ 1 - 1
exo/helpers.py

@@ -170,7 +170,7 @@ def is_valid_uuid(val):
 
 
 def get_or_create_node_id():
-  NODE_ID_FILE = Path(os.path.dirname(os.path.abspath(__file__)))/".exo_node_id"
+  NODE_ID_FILE = Path(tempfile.gettempdir()) / ".exo_node_id"
   try:
     if NODE_ID_FILE.is_file():
       with open(NODE_ID_FILE, "r") as f: