fix(bin/linja): fix some file name escaping
This commit is contained in:
parent
3e3ce6b8ca
commit
98fa04b1ff
1 changed files with 2 additions and 2 deletions
|
@ -309,7 +309,7 @@ def find_file_upward(name, path = os.getcwd()):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def escape_ninja_char(name):
|
def escape_ninja_char(name):
|
||||||
return name.replace("$", "$$").replace(":", "$:").replace(" ", "$ ")
|
return name.replace("$", "$$").replace(":", "$:").replace(" ", "$ ").replace("&", "$&")
|
||||||
|
|
||||||
def normalize_drive_name(name):
|
def normalize_drive_name(name):
|
||||||
if platform.system() == "Windows":
|
if platform.system() == "Windows":
|
||||||
|
@ -414,7 +414,7 @@ def get_lean_options(args):
|
||||||
if args.to_axiom:
|
if args.to_axiom:
|
||||||
args.lean_options.append("--to_axiom")
|
args.lean_options.append("--to_axiom")
|
||||||
if args.cache:
|
if args.cache:
|
||||||
args.lean_options += ["-c", '%s' % args.cache]
|
args.lean_options += ["-c", '"%s"' % args.cache]
|
||||||
if args.lean_config_option:
|
if args.lean_config_option:
|
||||||
for item in args.lean_config_option:
|
for item in args.lean_config_option:
|
||||||
args.lean_options.append("-D" + item)
|
args.lean_options.append("-D" + item)
|
||||||
|
|
Loading…
Reference in a new issue