Created
November 21, 2012 09:55
-
-
Save boegel/4124055 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/easybuild/main.py b/easybuild/main.py | |
index 8b41b18..28ac11e 100644 | |
--- a/easybuild/main.py | |
+++ b/easybuild/main.py | |
@@ -248,7 +248,7 @@ def parse_options(): | |
return options, paths, log, logfile, hn, parser | |
-def main(options): | |
+def main(options, orig_paths, log, logfile, hn, parser): | |
""" | |
Main function: | |
@arg options: a tuple: (options, paths, logger, logfile, hn) as defined in parse_options | |
@@ -264,7 +264,6 @@ def main(options): | |
"Exiting.\n") | |
sys.exit(1) | |
- options, orig_paths, log, logfile, hn, parser = options | |
# show version | |
if options.version: | |
print_msg("This is EasyBuild %s" % VERBOSE_VERSION, log) | |
@@ -1451,7 +1450,7 @@ def print_tree(classes, classNames, detailed, depth=0): | |
if __name__ == "__main__": | |
try: | |
- main(parse_options()) | |
+ main(*parse_options()) | |
except EasyBuildError, e: | |
sys.stderr.write('ERROR: %s\n' % e.msg) | |
sys.exit(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, let's go for the latter then.