2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2024-11-22 18:07:09 +01:00

msdev: fix

This commit is contained in:
mittorn 2019-04-09 11:46:20 +00:00 committed by Alibek Omarov
parent 9421963b29
commit f6b3603934

View File

@ -598,9 +598,9 @@ class MsDevProject(MsDev):
Logs.pprint('YELLOW', 'root: ' + bld.root.abspath())
root = bld.root.abspath().replace('\\', '/')
pref = os.path.commonprefix([root, uselib_inc])
Logs.pprint('YELLOW', 'pref: ' + pref.abspath())
Logs.pprint('YELLOW', 'pref: '+ pref)
if pref == root:
node = bld.top_dir.find_dir(uselib_inc)
node = bld.root.find_dir(uselib_inc)
if node:
includes.append(node.path_from(gen.path).replace('/', '\\'))
includes.append(uselib_inc)