diff options
| author | Sworddragon <sworddragon2@aol.com> | 2011-05-06 18:27:06 +0200 |
|---|---|---|
| committer | oy <Tom_Adams@web.de> | 2011-05-09 17:29:40 +0200 |
| commit | baa2e650a5e53303b13a8d0ffe50e30237cb403b (patch) | |
| tree | 5a41661ee0e4e9ad5257e144d19eeb0655400718 /scripts/copyright.py | |
| parent | 1850851a4762858e17696eaee1dfb65cba238930 (diff) | |
| download | zcatch-baa2e650a5e53303b13a8d0ffe50e30237cb403b.tar.gz zcatch-baa2e650a5e53303b13a8d0ffe50e30237cb403b.zip | |
Set the root directory of teeworlds as the main directory for scripts
Diffstat (limited to 'scripts/copyright.py')
| -rwxr-xr-x | scripts/copyright.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/copyright.py b/scripts/copyright.py index fade0b13..269ac7a3 100755 --- a/scripts/copyright.py +++ b/scripts/copyright.py @@ -2,9 +2,10 @@ import os, re, sys match = re.search('(.*)/', sys.argv[0]) if match != None: os.chdir(match.group(1)) +os.chdir('../') 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] +exclude = ["src%sengine%sexternal" % (os.sep, os.sep), "src%sosxlaunch" % os.sep] updated_files = 0 def fix_copyright_notice(filename): @@ -42,7 +43,7 @@ def fix_copyright_notice(filename): updated_files += 1 skip = False -for root, dirs, files in os.walk("../src"): +for root, dirs, files in os.walk("src"): for excluding in exclude: if root[:len(excluding)] == excluding: skip = True |