diff options
| author | chenyaxing <[email protected]> | 2021-05-25 21:17:35 +0800 |
|---|---|---|
| committer | chenyaxing <[email protected]> | 2021-05-25 21:17:35 +0800 |
| commit | 1ac2347e1df6cfd0465054b098be21faaff0aeb2 (patch) | |
| tree | e291042e1af5987f9064c3be5db51b7aeca93dd0 | |
| parent | 17cae02ad5e67a4dabcfa431dee2d10d2d8bcbed (diff) | |
dev:[tools] add default project name and project path while --dist-ide
| -rw-r--r-- | tools/building.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/building.py b/tools/building.py index bfdd1ff55a..32ce449622 100644 --- a/tools/building.py +++ b/tools/building.py @@ -925,14 +925,11 @@ def EndBuilding(target, program = None): project_name = GetOption('project-name') if not isinstance(project_path, str) or len(project_path) == 0 : - print("\nwarning : --project-path=your_project_path parameter is required.") - print("\nstop!") - exit(0) - + project_path = os.path.join(BSP_ROOT, 'dist_ide_project') + print("\nwarning : --project-path not specified, use default path: {0}.".format(project_path)) if not isinstance(project_name, str) or len(project_name) == 0: - print("\nwarning : --project-name=your_project_name parameter is required.") - print("\nstop!") - exit(0) + project_name = "dist_ide_project" + print("\nwarning : --project-name not specified, use default project name: {0}.".format(project_name)) rtt_ide = {'project_path' : project_path, 'project_name' : project_name} MkDist(program, BSP_ROOT, Rtt_Root, Env, rtt_ide) |
