splitext didn't work

This commit is contained in:
xPaw 2014-07-27 12:11:44 +03:00
parent 5d85c0a965
commit a6f10efd03

View File

@ -120,7 +120,7 @@ for amxx_file in AMXX.plugins:
# Copy the generated version .inc.
for generated_header in AMXX.generated_headers:
if os.path.splitext(generated_header.path)[1] == 'inc':
if 'amxmodx_version.inc' in generated_header.path:
builder.AddCopy(generated_header, folder_map['base/addons/amxmodx/scripting/include'])
break