From bced60bf862642e9fc987babffe6045c1f7754c2 Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Tue, 5 May 2015 15:42:08 +0200 Subject: [PATCH] pass command line arguments to task generator --- make.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/make.py b/make.py index 6f08008..c029a3c 100755 --- a/make.py +++ b/make.py @@ -17,7 +17,9 @@ if len(sys.argv) < 2: print("you must specify a project-name as first argument, eg. './make.py sotmeu14'") sys.exit(1) -projectname = sys.argv[1].strip('/') +args = sys.argv[1:] + +projectname = args.pop(0).strip('/') try: project = renderlib.loadProject(projectname) except ImportError: @@ -51,7 +53,7 @@ if renderlib.debug: tasks = Queue() # call into project which generates the tasks -project.tasks(tasks) +project.tasks(tasks, args) # one working thread per cpu num_worker_threads = multiprocessing.cpu_count()