diff options
author | jak1 <mike.wollmann@gmail.com> | 2020-04-06 16:44:53 +0200 |
---|---|---|
committer | jak1 <mike.wollmann@gmail.com> | 2020-04-06 16:44:53 +0200 |
commit | 752e30ec7b044aee96d8f8e15d32aba81b7dde0e (patch) | |
tree | b2cb719d9c5f838fbaaf764b00fe4b43f24bf1dc | |
parent | 3404582353e918b191db4312bbf2f97788301c68 (diff) | |
download | manachat-752e30ec7b044aee96d8f8e15d32aba81b7dde0e.tar.gz manachat-752e30ec7b044aee96d8f8e15d32aba81b7dde0e.tar.bz2 manachat-752e30ec7b044aee96d8f8e15d32aba81b7dde0e.tar.xz manachat-752e30ec7b044aee96d8f8e15d32aba81b7dde0e.zip |
moved maps to db/
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | db/mapdb.zip (renamed from mapdb.zip) | bin | 256414 -> 256414 bytes | |||
-rwxr-xr-x | db/mapnames.txt (renamed from mapnames.txt) | 0 | ||||
-rwxr-xr-x | gui/tmxmap.py | 2 | ||||
-rwxr-xr-x | mapnames.py | 2 |
5 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ #configuration files -manachat.ini +config/manachat.ini config/*.txt #compiled python files Binary files differdiff --git a/mapnames.txt b/db/mapnames.txt index 03bc6a4..03bc6a4 100755 --- a/mapnames.txt +++ b/db/mapnames.txt diff --git a/gui/tmxmap.py b/gui/tmxmap.py index 800868e..58ee490 100755 --- a/gui/tmxmap.py +++ b/gui/tmxmap.py @@ -82,7 +82,7 @@ class MapWidget(Image): def load_map(self, name, *args): if name not in self.maps: Logger.info("Caching map %s", name) - zf = zipfile.ZipFile('mapdb.zip', 'r') + zf = zipfile.ZipFile('db/mapdb.zip', 'r') self.maps[name] = pickle.load(zf.open(name + '.pickle')) zf.close() # m = pytmx.TiledMap(filename=filename) diff --git a/mapnames.py b/mapnames.py index 5c01280..612908b 100755 --- a/mapnames.py +++ b/mapnames.py @@ -2,7 +2,7 @@ map_names = {} -def read_map_names(file='mapnames.txt'): +def read_map_names(file='db/mapnames.txt'): with open(file) as f: for l in f.readlines(): try: |