patchupdate.py: Allow to run from arbitrary working directory.

This commit is contained in:
Sebastian Lackner 2015-06-03 07:32:57 +02:00
parent 6a8261887f
commit 26d8a27276

View File

@ -794,6 +794,9 @@ if __name__ == "__main__":
raise RuntimeError("CTRL+C pressed")
signal.signal(signal.SIGINT, _sig_int)
tools_directory = os.path.dirname(os.path.realpath(__file__))
os.chdir(os.path.join(tools_directory, "./../.."))
try:
# Get information about Wine and Staging version