浏览代码

also use tempdir for .exo_node_id to keep the dir clean

Alex Cheema 7 月之前
父节点
当前提交
4923eb7e44
共有 1 个文件被更改,包括 1 次插入1 次删除
  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: