From 3bdade3a7f58818864c1cff10f46ebb8740363df Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Thu, 19 Apr 2012 22:16:33 -0500 Subject: create maps directory if necessary original-commit-id: 7114385997599104c259c378c656273b2486a54b --- crystal.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crystal.py') diff --git a/crystal.py b/crystal.py index eccc6a5..4a5ed44 100644 --- a/crystal.py +++ b/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) -- cgit v1.2.3