mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-25 02:49:46 +00:00
ext_copy: bug when creating the error string.
Wrong usage of % syntax.
This commit is contained in:
parent
ded8c873f4
commit
0b56495e48
@ -53,7 +53,7 @@ def main(argv):
|
||||
error(usage(progname))
|
||||
abs_from_file = args[0]
|
||||
if not os.path.isabs(abs_from_file):
|
||||
error("%s is not an absolute file name.\n%s" % abs_from_file, usage(progname))
|
||||
error("%s is not an absolute file name.\n%s" % (abs_from_file, usage(progname)))
|
||||
from_dir = os.path.dirname(abs_from_file)
|
||||
|
||||
# output directory
|
||||
@ -64,7 +64,7 @@ def main(argv):
|
||||
if targext != '.':
|
||||
to_dir += "." + targext
|
||||
if not os.path.isabs(to_dir):
|
||||
error("%s is not an absolute file name.\n%s" % to_dir, usage(progname))
|
||||
error("%s is not an absolute file name.\n%s" % (to_dir, usage(progname)))
|
||||
|
||||
if not copy_all(from_dir, to_dir, exts):
|
||||
# some kind of failure
|
||||
|
Loading…
Reference in New Issue
Block a user