diff options
author | bfox <bfox> | 2001-07-02 20:06:06 +0000 |
---|---|---|
committer | bfox <bfox> | 2001-07-02 20:06:06 +0000 |
commit | 0baae10db4618879a162f0b2d614443d87d941ca (patch) | |
tree | b1fa4360547f30220c880f74e30ef8e12a1d17be /readConfigFile.py | |
parent | 3ec41e9a9568ef37a42b48a8aecd7eb2ba7a228e (diff) | |
download | anaconda-0baae10db4618879a162f0b2d614443d87d941ca.tar.gz anaconda-0baae10db4618879a162f0b2d614443d87d941ca.tar.xz anaconda-0baae10db4618879a162f0b2d614443d87d941ca.zip |
retry with the config file stuff
Diffstat (limited to 'readConfigFile.py')
-rwxr-xr-x | readConfigFile.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/readConfigFile.py b/readConfigFile.py index eae814013..8d99aa932 100755 --- a/readConfigFile.py +++ b/readConfigFile.py @@ -5,10 +5,15 @@ import os def getConfigFile(): import string - if os.access("anaconda.conf", os.O_RDONLY): + if os.access("custom/anaconda.conf", os.O_RDONLY): + f = open("custom/anaconda.conf", "r") + elif os.access("/usr/lib/anaconda/custom/anaconda.conf", os.O_RDONLY): + f = open("/usr/lib/anaconda/custom/anaconda.conf", "r") + elif os.access("anaconda.conf", os.O_RDONLY): f = open("anaconda.conf", "r") else: f = open("/usr/lib/anaconda/anaconda.conf", "r") + lines = f.readlines() f.close() |