Winster
Winster

Reputation: 91

Applying a .patch to .py files in Windows 7

Alright, so I want to change a file in Google App Engine, and there is a patch for it provided at the following link:

Issue 4849 on Google Code

I can see that the .patch files modify a particular .py fie on my HD, but am unable to make any changes myself since I do not know how to use .patch files. I have searched online, BUT SOMEHOW, there seems to be NO data on applying a patch on a .py file in windows. Can someone please help me?

Or better still, can someone simply apply the patch on the _init.py_ file and send it over? (I am not being lazy, I just don't think it's smart to type in so much about finding a patch software on windows if someone can do it readily on linux)

Here are the patch files and the init.py files: It'sa 5 KB rar file!

init.rar

Upvotes: 2

Views: 1413

Answers (1)

proppy
proppy

Reputation: 10504

You can use patch.exe for Windows, then run the following command in a directory containing both __init__.patch and __init__.py (from the rar you attached to your question).

path\to\patch.exe -p4 < __init__.patch

Also see this question for alternatives.

That should produce the following output

patching file __init__.py

Upvotes: 1

Related Questions