summaryrefslogtreecommitdiffstats
path: root/readConfigFile.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2005-03-29 18:36:45 +0000
committerJeremy Katz <katzj@redhat.com>2005-03-29 18:36:45 +0000
commit3eede90004cfa9e12299aed178c652a91174a5fb (patch)
treeb988f726fee46b21d95a0154322d4755384f9b50 /readConfigFile.py
parent7ec16efcd173926d85f8a801a0af390f93dc4689 (diff)
downloadanaconda-3eede90004cfa9e12299aed178c652a91174a5fb.tar.gz
anaconda-3eede90004cfa9e12299aed178c652a91174a5fb.tar.xz
anaconda-3eede90004cfa9e12299aed178c652a91174a5fb.zip
2005-03-29 Jeremy Katz <katzj@redhat.com>
* anaconda: Remove essentially unused config file data code, product.img basically supplanted this. * Makefile: Likewise. * cmdline.py: Likewise. * gui.py: Likewise. * text.py: Likewise. * dispatch.py: Likewise. * instdata.py: Likewise. * splashscreen.py: Likewise. * iw/welcome_gui.py: Likewise. * textw/welcome_text.py: Likewise. * anaconda.conf: Remove file. * configFileData.py: Likewise. * readConfigFile.py: Likewise.
Diffstat (limited to 'readConfigFile.py')
-rwxr-xr-xreadConfigFile.py35
1 files changed, 0 insertions, 35 deletions
diff --git a/readConfigFile.py b/readConfigFile.py
deleted file mode 100755
index fc46dafa4..000000000
--- a/readConfigFile.py
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/python
-import string
-import os
-
-def getConfigFile():
- import string
-
- if os.access("custom/anaconda.conf", os.O_RDONLY):
- f = open("custom/anaconda.conf", "r")
- elif os.access("/tmp/product/anaconda.conf", os.O_RDONLY):
- f = open("/tmp/product/anaconda.conf", "r")
- elif os.access("/tmp/updates/anaconda.conf", os.O_RDONLY):
- f = open("/tmp/updates/anaconda.conf", "r")
- elif os.access("/usr/share/anaconda/custom/anaconda.conf", os.O_RDONLY):
- f = open("/usr/share/anaconda/custom/anaconda.conf", "r")
- elif os.access("anaconda.conf", os.O_RDONLY):
- f = open("anaconda.conf", "r")
- else:
- f = open("/usr/share/anaconda/anaconda.conf", "r")
-
- lines = f.readlines()
- f.close()
-
- dict = {}
-
- for line in lines:
- line = string.strip(line)
-
- if string.find (line, "#") > -1 or line == "":
- pass
- else:
- tokens = string.split(line)
- str = string.join(tokens[1:])
- dict[tokens[0]] = str
- return dict