mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
3f03f0a447
The change is only relevant to development as all the call to python scripts is done calling C++ os::python that invoques the appropriate python version. The change is two fold, on one hand remove all the uses of /usr/bin/env for python. On the other hand rename all the calls to python from python to python3 making it explicit and being compliant with PEP 394 -- The "python" Command on Unix-Like Systems: https://www.python.org/dev/peps/pep-0394/ Remove the sheebang from src/graphics/GraphicsConverter.cpp because it is not necessary. Some small whitespace changes.
8 lines
179 B
Python
8 lines
179 B
Python
#! /usr/bin/python3
|
|
|
|
###############
|
|
import sys, os, shutil
|
|
|
|
if os.stat(sys.argv[1]).st_size > 0 or not os.path.isfile(sys.argv[3]):
|
|
shutil.copyfile(sys.argv[2], sys.argv[3])
|