diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-04-19 22:16:33 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-04-19 22:17:22 -0500 |
commit | 7114385997599104c259c378c656273b2486a54b (patch) | |
tree | 5d5bd3df02f30481a6acc0f2e6c0621028b844c6 /extras/crystal.py | |
parent | a3dc6079899d2cfd9d8563a421f8c3ce626caceb (diff) |
create maps directory if necessary
Diffstat (limited to 'extras/crystal.py')
-rw-r--r-- | extras/crystal.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index eccc6a55d..4a5ed443c 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -2987,6 +2987,8 @@ class MapBlockData: def save_to_file(self): #check if the file exists already map_path = self.map_path + if not os.path.exists(self.maps_path): + os.mkdir(self.maps_path) if not os.path.exists(map_path): #dump to file #bytes = rom_interval(self.address, self.width.byte*self.height.byte, strings=True) |