Mercurial > p > roundup > code
comparison frontends/ZRoundup/__init__.py @ 1096:fa7df238e2d4
More cleaning up of configuration, and the "instance" -> "tracker" renaming.
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Tue, 10 Sep 2002 03:01:20 +0000 |
| parents | e5826025eeb7 |
| children | 1621df560512 |
comparison
equal
deleted
inserted
replaced
| 1095:711f2ecee20f | 1096:fa7df238e2d4 |
|---|---|
| 12 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 12 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 13 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" | 13 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" |
| 14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, | 14 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
| 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. | 15 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
| 16 # | 16 # |
| 17 # $Id: __init__.py,v 1.2 2002-09-10 01:07:05 richard Exp $ | 17 # $Id: __init__.py,v 1.3 2002-09-10 03:01:18 richard Exp $ |
| 18 # | 18 # |
| 19 __version__='1.0' | 19 __version__='1.0' |
| 20 | 20 |
| 21 import os | 21 import os |
| 22 # figure where ZRoundup is installed | 22 # figure where ZRoundup is installed |
| 23 here = None | 23 here = None |
| 24 if os.environ.has_key('INSTANCE_HOME'): | 24 if os.environ.has_key('TRACKER_HOME'): |
| 25 here = os.environ['INSTANCE_HOME'] | 25 here = os.environ['TRACKER_HOME'] |
| 26 path = os.path.join(here, 'Products', 'ZRoundup') | 26 path = os.path.join(here, 'Products', 'ZRoundup') |
| 27 if not os.path.exists(path): | 27 if not os.path.exists(path): |
| 28 path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup') | 28 path = os.path.join(here, 'lib', 'python', 'Products', 'ZRoundup') |
| 29 if not os.path.exists(path): | 29 if not os.path.exists(path): |
| 30 here = None | 30 here = None |
