| version 1.4 | | version 1.5 |
|---|
| | |
|
| |
|
| import os
| | import os
|
| import string
| | import string
|
| import CFPython
| | import Crossfire
|
|
| |
|
| class CFDataFile:
| | class CFDataFile:
|
| '''Plain text storage for Crossfire data'''
| | '''Plain text storage for Crossfire data'''
|
| | |
| '''make datafile paths for datafile 'object'
| | '''make datafile paths for datafile 'object'
|
| - these all go in ../var/crossfire/datafiles to keep the local dir clean'''
| | - these all go in ../var/crossfire/datafiles to keep the local dir clean'''
|
| self.datafile_name = datafile_name
| | self.datafile_name = datafile_name
|
| self.filename = os.path.join((CFPython.GetLocalDirectory()),'datafiles',datafile_name)
| | self.filename = os.path.join((Crossfire.LocalDirectory()),'datafiles',datafile_name)
|
|
| |
|
| def exists(self):
| | def exists(self):
|
| '''checks for datafile - no need to load it yet'''
| | '''checks for datafile - no need to load it yet'''
|