a/branches/13-jobs/cforge/cforge/Package/CFORGE/Scripts/build.py | b/branches/13-jobs/cforge/cforge/Package/CFORGE/Scripts/build.py | ||
---|---|---|---|
... |
... |
||
81 | scriptname = os.path.join(scriptpath, "action.markdown.py") |
81 | scriptname = os.path.join(scriptpath, "action.markdown.py") |
82 | scriptargs = folder |
82 | scriptargs = folder |
83 | cds_script.RunCodesysWithScript(scriptname, scriptargs, False) |
83 | cds_script.RunCodesysWithScript(scriptname, scriptargs, False) |
84 | 84 | ||
85 | # call main |
85 | # call main |
86 | if __name__ == "__main__": |
86 | if __name__ == "<module>": |
87 | if len(sys.argv) <= 1: |
87 | if len(sys.argv) <= 1: |
88 | print("Oh, there are no arguments. Perhaps you forgot something?") |
88 | print("Oh, there are no arguments. Perhaps you forgot something?") |
89 | sys.exit() |
89 | sys.exit() |
90 | do(sys.argv[1]) |
90 | do(sys.argv[1]) |