]> git.lyx.org Git - lyx.git/blobdiff - development/scons/scons_utils.py
Scons: create libs directory for res file
[lyx.git] / development / scons / scons_utils.py
index 1a200f0186abfd02d81ea783fe63a2c1c43c09a3..14c0b101529cd86e383a00cbaae7d0f1cc17e7eb 100644 (file)
@@ -80,6 +80,9 @@ def createResFromIcon(env, icon_file, rc_file):
     ''' create a rc file with icon, and return res file (windows only) '''
     if os.name == 'nt':
         rc_name = env.File(rc_file).abspath
+        dir = os.path.split(rc_name)[0]
+        if not os.path.isdir(dir):
+            os.makedirs(dir)
         rc = open(rc_name, 'w')
         print >> rc, 'IDI_ICON1  ICON DISCARDABLE "%s"' % \
             os.path.join(env.Dir('$TOP_SRCDIR').abspath, 'development', 'win32',