mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-21 17:51:03 +00:00
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:
parent
ffbc3708f4
commit
6b440f84ca
@ -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>
|
||||
|
||||
* scripts/convertDefault.sh: protect shell variables with quotes.
|
||||
|
@ -225,7 +225,7 @@ def legacy_conversion(argv):
|
||||
bg_color = argv[5]
|
||||
|
||||
# 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)
|
||||
dvips = find_exe_or_terminate(["dvips"], path)
|
||||
gs = find_exe_or_terminate(["gswin32", "gs"], path)
|
||||
|
@ -133,7 +133,7 @@ def main(argv):
|
||||
bg_color = make_texcolor(argv[5])
|
||||
|
||||
# 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)
|
||||
|
||||
# This can go once dvipng becomes widespread.
|
||||
|
Loading…
Reference in New Issue
Block a user