summaryrefslogtreecommitdiffstats
path: root/readConfigFile.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-06-21 20:23:21 +0000
committerJeremy Katz <katzj@redhat.com>2001-06-21 20:23:21 +0000
commit3540c0aebded75f21bb95213659bbf156c1b47e9 (patch)
tree7c7fc8dbe839c8e9fd130d61935715136d16d652 /readConfigFile.py
parenta8b2a0e34024ac520d587acdac362c30e4c9bf59 (diff)
downloadanaconda-3540c0aebded75f21bb95213659bbf156c1b47e9.tar.gz
anaconda-3540c0aebded75f21bb95213659bbf156c1b47e9.tar.xz
anaconda-3540c0aebded75f21bb95213659bbf156c1b47e9.zip
search path for anaconda.conf
Diffstat (limited to 'readConfigFile.py')
-rwxr-xr-xreadConfigFile.py6
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()