''' 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',
- 'packaging', 'icons', icon_file)
+ 'packaging', 'icons', icon_file).replace('\\', '\\\\')
rc.close()
return env.RES(rc_name)
else: