瀏覽代碼

adjust paths in highspeed-bids-participants.py

Lennart Wittkuhn 3 年之前
父節點
當前提交
98393f66ef
共有 1 個文件被更改,包括 4 次插入5 次删除
  1. 4 5
      code/bids_conversion/highspeed-bids-participants.py

+ 4 - 5
code/bids_conversion/highspeed-bids-participants.py

@@ -17,11 +17,10 @@ import os
 # ======================================================================
 # DEFINE PATHS
 # ======================================================================
-# path to the root directory:
-path_root = os.environ['HOME']
-# path to the data input directory (in bids format):
-path_bids = os.path.join(path_root, 'highspeed', 'bids')
-path_desc = os.path.join(path_bids, 'participants.json')
+# path to the project root:
+project_name = 'highspeed-bids'
+path_root = os.getcwd().split(project_name)[0] + project_name
+path_desc = os.path.join(path_root, 'participants.json')
 # ======================================================================
 # UPDATE DATA-SET DESCRIPTION FILE
 # ======================================================================