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