mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 06:45:37 +08:00
Issue #69 CSL2XSB always asks for confirmation to proceed
This commit is contained in:
@@ -386,9 +386,7 @@ parser.add_argument('--replaceDR', metavar="TEXT", help="Replace dataRef's root
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
# If called with no argument (e.g. by double-clicking the script) ask the user interactively
|
||||
# if (s)he likes to work on the current directory.
|
||||
UserWantsIt = None
|
||||
# ask the user interactively if (s)he likes to work on the current directory.
|
||||
if args.path == 'NULL':
|
||||
args.path = Path.cwd()
|
||||
print (parser.description)
|
||||
@@ -413,8 +411,6 @@ if args.verbose:
|
||||
numConverted = ConvFolder(basePath)
|
||||
print ('Done. Converted ' + str(numConverted) + ' OBJ8 files in total. Produced ' + str(_warnings) + ' warning(s).')
|
||||
|
||||
# Running interactively?
|
||||
if UserWantsIt is not None:
|
||||
input ("Hit [Enter] to finish.")
|
||||
|
||||
# --- Done ---
|
||||
|
||||
Reference in New Issue
Block a user