wmllint, wmlscope and wmlindent: fixed bug caused by Windows' command prompt appending double quotes to arguments

This is a backport of Elvish Hunter's 2013-02-23T13:04:12Z fix to 1.11.
This commit is contained in:
Elvish_Hunter 2013-02-23 13:04:12 +00:00 committed by Groggy Dice
parent 2fc24bf8aa
commit db1debd6c0

View file

@ -2078,6 +2078,12 @@ if __name__ == '__main__':
if not arguments:
arguments = ["."]
# in certain situations, Windows' command prompt appends a double quote
# to the command line parameters. This block takes care of this issue.
for i,arg in enumerate(arguments):
if arg.endswith('"'):
arguments[i] = arg[:-1]
for dir in arguments:
ofp = None
if "older" in versions: