comparison frontends/ZRoundup/__init__.py @ 5381:0942fe89e82e

Python 3 preparation: change "x.has_key(y)" to "y in x". (Also likewise "not in" where appropriate.) Tool-generated patch.
author Joseph Myers <jsm@polyomino.org.uk>
date Tue, 24 Jul 2018 22:08:17 +0000
parents 35ea9b1efc14
children d26921b851c3
comparison
equal deleted inserted replaced
5380:64c4e43fbb84 5381:0942fe89e82e
17 __version__='1.1' 17 __version__='1.1'
18 18
19 import os 19 import os
20 # figure where ZRoundup is installed 20 # figure where ZRoundup is installed
21 here = None 21 here = None
22 if os.environ.has_key('INSTANCE_HOME'): 22 if 'INSTANCE_HOME' in os.environ:
23 here = os.environ['INSTANCE_HOME'] 23 here = os.environ['INSTANCE_HOME']
24 path = os.path.join(here, 'Products', 'ZRoundup') 24 path = os.path.join(here, 'Products', 'ZRoundup')
25 if not os.path.exists(path): 25 if not os.path.exists(path):
26 path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup') 26 path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup')
27 if not os.path.exists(path): 27 if not os.path.exists(path):

Roundup Issue Tracker: http://roundup-tracker.org/