Browse Source

adjust paths in highspeed-bids-participants.py

Lennart Wittkuhn 3 years ago
parent
commit
98393f66ef
1 changed files with 4 additions and 5 deletions
  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
 # ======================================================================