# Check the existence and apply the patch
if os.path.isfile(patch):
- patch_exe = "patch" # old patch command (now replace by patching.py)
- #patch_exe = os.path.join(config.VARS.srcDir, "patching.py")
- patch_cmd = "%s -p1 < %s" % (patch_exe, patch)
+ #patch_exe = "patch" # old patch command (now replace by patching.py)
+ patch_exe = os.path.join(config.VARS.srcDir, "patching.py")
+ patch_cmd = "python %s -p1 -- < %s" % (patch_exe, patch)
# Write the command in the terminal if verbose level is at 5
logger.write((" >%s\n" % patch_cmd),5)