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:
parent
2fc24bf8aa
commit
db1debd6c0
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue