diff mxtool/mx.py @ 16682:63706366f6c5

moved distribution artifacts into build/ sub-directory
author Doug Simon <doug.simon@oracle.com>
date Mon, 04 Aug 2014 16:50:50 +0200
parents 7cdd7ede912d
children ff2b25002a58
line wrap: on
line diff
--- a/mxtool/mx.py	Mon Aug 04 15:54:41 2014 +0200
+++ b/mxtool/mx.py	Mon Aug 04 16:50:50 2014 +0200
@@ -2686,6 +2686,8 @@
 
     def __enter__(self):
         if self.path:
+            if not isdir(dirname(self.path)):
+                os.makedirs(dirname(self.path))
             fd, tmp = tempfile.mkstemp(suffix='', prefix=basename(self.path) + '.', dir=dirname(self.path))
             self.tmpFd = fd
             self.tmpPath = tmp