Fixed force_rewrite flag
@@ -46,7 +46,7 @@ def codegen(work, target_dir, python_ext_name, project_type, embedded,
# Check if python module already exists
if any(glob('%s*' % python_ext_name + module_ext)):
- module_name = glob('emosqp*' + module_ext)[0]
+ module_name = glob('%s*' % python_ext_name + module_ext)[0]
if force_rewrite:
os.remove(module_name)
else:
