From 8c6e307a2dceb6b6fd78bffcf23964e842a784ec Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Wed, 28 Apr 2010 17:11:57 -0400 Subject: [PATCH] Only add DISPLAY to the SCons build environment if the user has set it --- tex/src/SConscript | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tex/src/SConscript b/tex/src/SConscript index ce08fd4..550974d 100644 --- a/tex/src/SConscript +++ b/tex/src/SConscript @@ -8,11 +8,13 @@ from site_cons.site_tools import asymptote, gnuplot env = Environment(ENV={ 'PATH':['/usr/local/bin', '/opt/bin', '/bin', '/usr/bin'], 'HOME':os.path.expanduser('~'), - 'DISPLAY':os.environ['DISPLAY'], 'PYMOL_PATH':'/usr/lib/python2.6/site-packages/pymol', 'PYMOL_DATA':'/usr/share/pymol/data', 'PYMOL_SCRIPTS':'/usr/share/pymol/scripts', }) +if 'DISPLAY' in os.environ: + env['ENV']['DISPLAY'] = os.environ['DISPLAY'] + asymptote.generate(env) gnuplot.generate(env) -- 2.26.2