Skip to content
Snippets Groups Projects
Commit 93b2f371 authored by Wim Lavrijsen's avatar Wim Lavrijsen
Browse files

Do not remove DISPLAY from environ; this may lead to some

warnings, but those can be fixed by the user, whereas that
is not the case for setting DISPLAY back.


git-svn-id: http://root.cern.ch/svn/root/trunk@23668 27541ba8-7e3a-0410-8455-c3a389f83636
parent 587999f3
No related merge requests found
......@@ -2,7 +2,7 @@ from __future__ import generators
# @(#)root/pyroot:$Id$
# Author: Wim Lavrijsen (WLavrijsen@lbl.gov)
# Created: 02/20/03
# Last: 04/16/08
# Last: 05/06/08
"""PyROOT user module.
......@@ -68,10 +68,6 @@ except:
# module readline typically doesn't exist on non-Unix platforms
pass
## remove DISPLAY variable in batch mode as to not confuse early ROOT calls
if hasattr(sys,'argv') and '-b' in sys.argv and os.environ.has_key( 'DISPLAY' ):
del os.environ[ 'DISPLAY' ]
## special filter on MacOS X (warnings caused by linking that is still required)
if sys.platform == 'darwin':
import warnings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment