From d541c89914740e845fb60e3cfc3694cec89dba85 Mon Sep 17 00:00:00 2001 From: Bo Peng Date: Wed, 3 Jan 2007 04:56:45 +0000 Subject: [PATCH] Scons: create libs directory for res file git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@16471 a592a061-630c-0410-9148-cb99ea01b6c8 --- development/scons/scons_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/development/scons/scons_utils.py b/development/scons/scons_utils.py index 0fad9ddd74..afdfe00088 100644 --- a/development/scons/scons_utils.py +++ b/development/scons/scons_utils.py @@ -81,6 +81,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',