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.
This commit is contained in:
Campbell Barton
2015-12-27 17:09:29 +11:00
parent 700c40e2f9
commit 0cc98f9023
3 changed files with 66 additions and 32 deletions

View File

@@ -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,