diff --git a/python/CFgetPaths.py b/python/CFgetPaths.py deleted file mode 100644 index 217a4846b..000000000 --- a/python/CFgetPaths.py +++ /dev/null @@ -1,38 +0,0 @@ -## CFgetPaths.py -## Todd Mitchell (temitchell@sympatico.ca) -## Generates the proper Crossfire directory paths -## returns the absolute paths with a nice "/" at the end. -## -## It is depreciated as it is of dubuois value and breaks paths for win32 systems -## DON"T USE THIS ANYMORE! It is being removed shortly. - -import CFPython - -def getPaths(directory): - '''returns absolute path for crossfire directory specified. - Options are datadir, mapdir, uniquedir, localdir, playerdir, configdir, tempdir, all. - "all" will return a dictionary of all paths''' - -#Get the Paths - - datadir = "%s/" %(CFPython.GetDataDirectory()) - mapdir = "%s/%s/" %(datadir, CFPython.GetMapDirectory()) - uniquedir = "%s/%s/" %(datadir, CFPython.GetUniqueDirectory()) - localdir = "%s/" %(CFPython.GetLocalDirectory()) - playerdir = "%s/%s/" %(localdir, CFPython.GetPlayerDirectory()) - configdir = "%s/" %(CFPython.GetConfigurationDirectory()) - tempdir = "%s/" %(CFPython.GetTempDirectory()) - -#make the dictionary - - paths = {"datadir":datadir, "mapdir":mapdir, "uniquedir":uniquedir, "localdir":localdir, "playerdir":playerdir, "configdir":configdir, "tempdir":tempdir} - -#return the proper - - if directory == "all": - return paths - else: - try: - return paths[directory] - except KeyError: - return 0