From 0cc98f9023d9d1d030959df5d7b67b01bbbbe618 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 27 Dec 2015 17:09:29 +1100 Subject: Fix for error w/ QtCreator project builder cmake_qtcreator_project.py now takes a '--build-dir' argument. Since introduction of argparse, accessing last argv from project_info is no longer working. Now require a call to project_info.init before use. --- build_files/cmake/cmake_netbeans_project.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'build_files/cmake/cmake_netbeans_project.py') diff --git a/build_files/cmake/cmake_netbeans_project.py b/build_files/cmake/cmake_netbeans_project.py index 9ff9d85504a..d57bce770b4 100755 --- a/build_files/cmake/cmake_netbeans_project.py +++ b/build_files/cmake/cmake_netbeans_project.py @@ -29,6 +29,13 @@ Example linux usage Windows not supported so far """ +import sys + +# until we have arg parsing +import project_info +if not project_info.init(sys.argv[-1]): + sys.exit(1) + from project_info import ( SIMPLE_PROJECTFILE, SOURCE_DIR, -- cgit v1.2.3