File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1- #!/usr/bin/env python
1+ #!/usr/bin/env python3
22"""
33BSD 3-Clause License
44
5- Copyright (c) 2021 , University of Southern California
5+ Copyright (c) 2025 , University of Southern California
66All rights reserved.
77
88Redistribution and use in source and binary forms, with or without
@@ -283,7 +283,13 @@ def parse_xml(xml_path):
283283 else :
284284 arg_val = arg .childNodes [0 ].data .strip ()
285285 #print arg_val
286- arg_impl = objName (arg_val )
286+ if arg_type == "bool" :
287+ if str (arg_val ).lower () == "false" :
288+ arg_impl = False
289+ else :
290+ arg_impl = True
291+ else :
292+ arg_impl = objName (arg_val )
287293 if isinstance (arg_impl , str ):
288294 # Expand any variables that we have
289295 arg_impl = expand_variables (arg_impl )
You can’t perform that action at this time.
0 commit comments