diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-06-21 20:23:21 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-06-21 20:23:21 +0000 |
commit | 3540c0aebded75f21bb95213659bbf156c1b47e9 (patch) | |
tree | 7c7fc8dbe839c8e9fd130d61935715136d16d652 /readConfigFile.py | |
parent | a8b2a0e34024ac520d587acdac362c30e4c9bf59 (diff) | |
download | anaconda-3540c0aebded75f21bb95213659bbf156c1b47e9.tar.gz anaconda-3540c0aebded75f21bb95213659bbf156c1b47e9.tar.xz anaconda-3540c0aebded75f21bb95213659bbf156c1b47e9.zip |
search path for anaconda.conf
Diffstat (limited to 'readConfigFile.py')
-rwxr-xr-x | readConfigFile.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/readConfigFile.py b/readConfigFile.py index b76b514a1..eae814013 100755 --- a/readConfigFile.py +++ b/readConfigFile.py @@ -1,10 +1,14 @@ #!/usr/bin/python import string +import os def getConfigFile(): import string - f = open("anaconda.conf", "r") + if 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() |