Replace os.getenv(x) by os.environ[x] for compatibility with old python versions.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9063 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
José Matox 2004-10-08 09:19:54 +00:00
parent ffbc3708f4
commit 6b440f84ca
3 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2004-10-08 José Matos <jamatos@lyx.org>
* scripts/legacy_lyxpreview2ppm.py (legacy_conversion):
* scripts/lyxpreview2bitmap.py (main):
replace os.getenv(x) by os.environ[x] for compatibility with old
python versions.
2004-10-01 Angus Leeming <leeming@lyx.org> 2004-10-01 Angus Leeming <leeming@lyx.org>
* scripts/convertDefault.sh: protect shell variables with quotes. * scripts/convertDefault.sh: protect shell variables with quotes.

View File

@ -225,7 +225,7 @@ def legacy_conversion(argv):
bg_color = argv[5] bg_color = argv[5]
# External programs used by the script. # External programs used by the script.
path = string.split(os.getenv("PATH"), os.pathsep) path = string.split(os.environ["PATH"], os.pathsep)
latex = find_exe_or_terminate(["pplatex", "latex2e", "latex"], path) latex = find_exe_or_terminate(["pplatex", "latex2e", "latex"], path)
dvips = find_exe_or_terminate(["dvips"], path) dvips = find_exe_or_terminate(["dvips"], path)
gs = find_exe_or_terminate(["gswin32", "gs"], path) gs = find_exe_or_terminate(["gswin32", "gs"], path)

View File

@ -133,7 +133,7 @@ def main(argv):
bg_color = make_texcolor(argv[5]) bg_color = make_texcolor(argv[5])
# External programs used by the script. # External programs used by the script.
path = string.split(os.getenv("PATH"), os.pathsep) path = string.split(os.environ["PATH"], os.pathsep)
latex = find_exe_or_terminate(["pplatex", "latex2e", "latex"], path) latex = find_exe_or_terminate(["pplatex", "latex2e", "latex"], path)
# This can go once dvipng becomes widespread. # This can go once dvipng becomes widespread.