Merge lp:~jp-ellis/mg5amcnlo/allow-absolute-model-path into lp:mg5amcnlo/lts
Proposed by
Joshua Ellis
Status: | Merged |
---|---|
Merge reported by: | Olivier Mattelaer |
Merged at revision: | not available |
Proposed branch: | lp:~jp-ellis/mg5amcnlo/allow-absolute-model-path |
Merge into: | lp:mg5amcnlo/lts |
Diff against target: |
12 lines (+2/-0) 1 file modified
models/import_ufo.py (+2/-0) |
To merge this branch: | bzr merge lp:~jp-ellis/mg5amcnlo/allow-absolute-model-path |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Olivier Mattelaer | Needs Information | ||
Review via email: mp+303914@code.launchpad.net |
Commit message
Allow for absolute paths to be specified for the model's UFO files.
Description of the change
Allow for absolute paths to be specified for the model's UFO files.
To post a comment you must log in.
Dear Joshua,
I guess that the patch that you are looking for is
=== modified file 'models/ import_ ufo.py' import_ ufo.py 2016-06-20 11:08:55 +0000 import_ ufo.py 2016-08-25 11:02:57 +0000
last_model_ path = os.path. join(MG5DIR, p, model_name)
return os.path. join(MG5DIR, p, model_name) isdir(model_ name): join(MG5DIR, p, model_name): join(MG5DIR, model_name):
logger. info("model loaded from: %s", os.path. join(os. getcwd( ), model_name)) join(MG5DIR, p, model_name) join(MG5DIR, model_name) "Path %s is not a valid pathname" % model_name)
--- models/
+++ models/
@@ -79,9 +79,9 @@
if os.path.
- if last_model_path != os.path.
+ if last_model_path != os.path.
- last_model_path = os.path.
+ last_model_path = os.path.
return model_name
else:
raise UFOImportError(
Thanks,
Olivier