Use has_key to check environ var

This commit is contained in:
Marco Pesenti Gritti 2006-09-08 18:03:40 +02:00
parent bfe4922808
commit f4d8e538f4

View File

@ -71,7 +71,7 @@ class Session:
process = DbusProcess()
process.start()
if os.environ['SUGAR_DBUS_MONITOR']:
if os.environ.has_key('SUGAR_DBUS_MONITOR'):
dbm = DBusMonitorProcess()
dbm.start()