Fixed directory changing

This commit is contained in:
Sworddragon 2011-05-06 17:47:56 +02:00 committed by oy
parent 019eb146a7
commit 1850851a47

View file

@ -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))
source_exts = [".c", ".cpp", ".h"]