diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-12-27 09:09:29 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-12-27 09:11:44 +0300 |
commit | 0cc98f9023d9d1d030959df5d7b67b01bbbbe618 (patch) | |
tree | 2843ce4da766d811ac1d32c2180ed379cd1278b4 /build_files/cmake/cmake_netbeans_project.py | |
parent | 700c40e2f9b59b7e780429fdc10fb0d2d5d117a1 (diff) |
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.
Diffstat (limited to 'build_files/cmake/cmake_netbeans_project.py')
-rwxr-xr-x | build_files/cmake/cmake_netbeans_project.py | 7 |
1 files changed, 7 insertions, 0 deletions
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, |