From c698b65fcb6893d347718fe984f281c38b916288 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Tue, 3 May 2005 18:36:47 +0000 Subject: [PATCH] Removed unused file, marked as 'don't use' since august git-svn-id: svn://svn.code.sf.net/p/crossfire/code/trunk/maps@3240 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/CFgetPaths.py | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100644 python/CFgetPaths.py 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