]> git.lyx.org Git - features.git/commit
lyxpak.py: Use `subprocess` for spawning scripts.
authorGuy Rutenberg <guyrutenberg@gmail.com>
Sat, 11 Jul 2015 15:52:14 +0000 (18:52 +0300)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 28 Jul 2015 13:42:32 +0000 (15:42 +0200)
commitbe41ccd4d43a47570e2c53481361593b9e453069
treec0d21be117c54e01cc679b039bc11f57a99777a3
parent969ab7294ac92c0bcc28125df177c9396c65ff96
lyxpak.py: Use `subprocess` for spawning scripts.

`os.popen` is deprecated since Python-2.6. Also, this fixes the handling
of files with quotes in their names. The patch requires Python >= 2.7.

Furthermore, the patch executes the lyx2lyx script with the same
interpreter used for it, to maintain compatibility.

I also removed some lines related to Python-2.4, as it is no longer
supported anyway.
lib/scripts/lyxpak.py