Scons: create libs directory for res file

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16472 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-01-03 04:57:55 +00:00
parent 9c162a9bc6
commit 17a36a12f9

View 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',