]> git.lyx.org Git - features.git/commitdiff
Replace os.getenv(x) by os.environ[x] for compatibility with old python versions.
authorJosé Matox <jamatos@lyx.org>
Fri, 8 Oct 2004 09:19:54 +0000 (09:19 +0000)
committerJosé Matox <jamatos@lyx.org>
Fri, 8 Oct 2004 09:19:54 +0000 (09:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9063 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/scripts/legacy_lyxpreview2ppm.py
lib/scripts/lyxpreview2bitmap.py

index 7caa317d449ccd86a387322d4cf1804a4849bc52..a806be014a1e76d7a8061295c751bcbf51d2116f 100644 (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>
 
        * scripts/convertDefault.sh: protect shell variables with quotes.
index 992af3f76e2f421f53a03d4edb0a1e102b74119a..cc716e820615e423cf1400d85314deb0cbfc7f82 100644 (file)
@@ -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)
index 7be31537bf4f11ecb371feebf1f716117e35bf4f..3268beca7665beb778b0555ce9ef45622f1e1c72 100755 (executable)
@@ -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.