import os builder.SetBuildFolder('package') dir_map = {dir: builder.AddFolder(os.path.normpath(dir)) for dir in [ 'addons/sourcemod/extensions', 'addons/sourcemod/scripting', 'addons/sourcemod/scripting/include', ]} def CopyFile(src, dst): builder.AddCopy(os.path.join(builder.sourcePath, src), dir_map[dst]) CopyFile('pawn/scripting/curl_self_test.sp', 'addons/sourcemod/scripting') CopyFile('pawn/scripting/include/cURL.inc', 'addons/sourcemod/scripting/include') CopyFile('pawn/scripting/include/cURL_header.inc', 'addons/sourcemod/scripting/include') for cxx_task in Extension.extensions: builder.AddCopy(cxx_task.binary, dir_map['addons/sourcemod/extensions'])