summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2024-11-17 12:02:28 +0800
committerMeco Man <[email protected]>2024-11-17 22:01:42 -0500
commita7ee7b66171ad5ba0761e7f7a37fa173e82f2d76 (patch)
tree674df96b4edcfcd2a310e96269e8ff0b3c802ffe /tools
parent44515624e25230f5ec2157c5293fba9e431569db (diff)
Revert "[tools] use project's dir basename as default project name"
This reverts commit ea75800d5b3be3e63c6304afed8b06a3fdeae289.
Diffstat (limited to 'tools')
-rw-r--r--tools/options.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/options.py b/tools/options.py
index 9b338e7311..b77b675612 100644
--- a/tools/options.py
+++ b/tools/options.py
@@ -22,9 +22,8 @@
# 2022-04-20 WuGensheng Add Options to SCons
#
-from SCons.Script import AddOption, Dir
+from SCons.Script import AddOption
import platform
-import os
def AddOptions():
''' ===== Add generic options to SCons ===== '''
@@ -46,7 +45,7 @@ def AddOptions():
AddOption('--project-name',
dest = 'project-name',
type = 'string',
- default = os.path.basename(Dir('#').abspath),
+ default = "project",
help = 'set project name')
AddOption('--cscope',
dest = 'cscope',