-#!/usr/bin/env python
-# -*- coding: iso-8859-1 -*-
+# -*- coding: utf-8 -*-
# file fig_copy.py
# This file is part of LyX, the document processor.
import os, sys
if len(sys.argv) != 3:
- print >> sys.stderr, "Usage: fig_copy.sh <from file> <to file>"
+ print >> sys.stderr, "Usage: fig_copy.py <from file> <to file>"
sys.exit(1)
if not os.path.isfile(sys.argv[1]):
os.chdir(from_dir)
found = False
-for line in input.xreadlines():
+for line in input:
if found and not emptyline.match(line) and not commentline.match(line):
# The contents of the final line containing the file name
# are ' X <file name>', where X = 0 or 1.