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 | 3bdade3a7f58818864c1cff10f46ebb8740363df (patch) | |
tree | c4958882602ba34e7e1a964789f6b20f36e3cf97 /crystal.py | |
parent | aaf40541b16a8f4308cf4720b8e2086700bfda62 (diff) |
create maps directory if necessary
original-commit-id: 7114385997599104c259c378c656273b2486a54b
Diffstat (limited to 'crystal.py')
-rw-r--r-- | crystal.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |