about summary refs log tree commit diff
path: root/scripts/copyright.py
diff options
context:
space:
mode:
authorSworddragon <sworddragon2@aol.com>2011-04-02 04:47:19 +0200
committeroy <Tom_Adams@web.de>2011-04-03 22:33:47 +0200
commit3e6b77b0409d05d5ed19c61e24246ed2a88b65e7 (patch)
tree5831fd4e0f8d1b6c705ba855f7817fc523aab314 /scripts/copyright.py
parent5beae410430e9bf5f6813c7ffa552d7cd3417477 (diff)
downloadzcatch-3e6b77b0409d05d5ed19c61e24246ed2a88b65e7.tar.gz
zcatch-3e6b77b0409d05d5ed19c61e24246ed2a88b65e7.zip
Added/fixed directory changing
Diffstat (limited to 'scripts/copyright.py')
-rwxr-xr-xscripts/copyright.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/copyright.py b/scripts/copyright.py
index 29e1bbfe..fade0b13 100755
--- a/scripts/copyright.py
+++ b/scripts/copyright.py
@@ -1,7 +1,7 @@
 import os, re, sys
-match = re.search("(.*?)/[^/]*?$", sys.argv[0])
+match = re.search('(.*)/', sys.argv[0])
 if match != None:
-	os.chdir(os.getcwd() + "/" + match.group(1))
+	os.chdir(match.group(1))
 
 notice = [b"/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */\n", b"/* If you are missing that file, acquire a complete release at teeworlds.com.                */\n"]
 exclude = ["../src%sengine%sexternal" % (os.sep, os.sep), "../src%sosxlaunch" % os.sep]