File tree Expand file tree Collapse file tree 3 files changed +347
-45
lines changed Expand file tree Collapse file tree 3 files changed +347
-45
lines changed Original file line number Diff line number Diff line change 41
41
# Solve this by ensuring that the chckout is part of the sys.path
42
42
43
43
# NOTE: __file__ is /MIG_BASE/mig/install/generateconfs.py and we need MIG_BASE
44
-
45
- sys .path .append (os . path . dirname (os . path . dirname (os .path .dirname (__file__ ))))
44
+ dirname = os . path . dirname
45
+ sys .path .append (dirname (dirname (dirname ( os .path .abspath (__file__ ) ))))
46
46
47
47
# NOTE: moved mig imports into try/except to avoid autopep8 moving to top!
48
48
try :
@@ -358,9 +358,10 @@ def usage(options):
358
358
# Remove default values to use generate_confs default values
359
359
if val == 'DEFAULT' :
360
360
del settings [key ]
361
- conf = generate_confs (** settings )
361
+ options = generate_confs (** settings )
362
362
# TODO: avoid reconstructing this path (also done inside generate_confs)
363
- instructions_path = "%s/instructions.txt" % conf ['destination_path' ]
363
+ instructions_path = os .path .join (options ['destination_dir' ],
364
+ 'instructions.txt' )
364
365
try :
365
366
instructions_fd = open (instructions_path , "r" )
366
367
instructions = instructions_fd .read ()
You can’t perform that action at this time.
0 commit comments