mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
remove used options from argv
This commit is contained in:
parent
e8b161017b
commit
a2cd5d441e
@ -59,7 +59,12 @@ script_dir = os.getcwd()
|
||||
cmake_path = find_executable("cmake")
|
||||
cmake_extra = []
|
||||
cmake_config = 'Release'
|
||||
options = [arg[2:].lower() for arg in sys.argv if arg.startswith('--')]
|
||||
|
||||
options = []
|
||||
for arg in sys.argv:
|
||||
if arg.startswith('--'):
|
||||
sys.argv.remove(arg)
|
||||
options.append(arg[2:].lower())
|
||||
|
||||
opt_key = None
|
||||
# parse commandline options
|
||||
|
Loading…
Reference in New Issue
Block a user