Skip to content
Snippets Groups Projects
Commit 57f2af49 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

RF: Context passes BIPDIR/FSLDIR to Config constructor

parent 6ce08844
No related branches found
No related tags found
1 merge request!4ENH: Config file templating
......@@ -50,13 +50,19 @@ class Usage(Exception):
class Context(Config):
def __init__(self, subject, *args, **kwargs):
def __init__(self, subject, cfgdir=None):
Config.__init__(self, *args, **kwargs)
# Paths which may be referenced
# in configuration files.
env = {'BIPDIR' : bip.BIPDIR,
'FSLDIR' : os.environ['FSLDIR']}
Config.__init__(self, env=env)
self.subject = subject
self.BIPDIR = bip.BIPDIR
self.FSLDIR = os.environ['FSLDIR']
self.BIPDIR = env['BIPDIR']
self.FSLDIR = env['FSLDIR']
with open(self.get_data('dMRI/autoptx/struct_list.json'), 'r',
encoding="utf-8") as f:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment