[svn r851] Bug #1790620 fixed. COPYING file updated to the correct license (LGPL)
3 __author__ = "Renato Araujo Oliveira Filho"
4 __author_email__ = "renato.filho@indt.org.br"
12 __all__ = ("GmsConfig")
15 config = ConfigParser.ConfigParser()
16 __CONFIG_FILE__ = "server.conf"
17 __CONFIG_DIRS__ = [os.path.join (os.path.expanduser("~"), ".gms"), \
18 os.path.join ("/", "etc", "gms"), \
22 for path in self.__CONFIG_DIRS__:
23 file_name = os.path.join (path, self.__CONFIG_FILE__)
24 if os.path.exists (file_name):
25 fp = open (file_name, "r")
26 self.config.readfp (fp)
30 def get_transcoded_location (self):
32 return os.path.realpath (self.config.get("PATHS", "transcoded"))
35 # get_transcoded_location()