| version 1.4 | | version 1.5 |
|---|
| | |
| import os.path | | import os.path |
| import shelve | | import shelve |
| | | |
| import CFPython | | import Crossfire |
| | | |
| class CFBank: | | class CFBank: |
| bankdb = {} | | bankdb = {} |
| | | |
| def __init__(self, bankfile): | | def __init__(self, bankfile): |
| self.bankdb_file = os.path.join(CFPython.GetLocalDirectory(),bankfile) | | self.bankdb_file = os.path.join(Crossfire.LocalDirectory(),bankfile) |
| self.bankdb = shelve.open(self.bankdb_file) | | self.bankdb = shelve.open(self.bankdb_file) |
| | | |
| def deposit(self, user, amount): | | def deposit(self, user, amount): |