added directory enhancement for update_localization.py by Sworddragon

This commit is contained in:
oy 2010-12-11 20:29:24 +01:00
parent 6620da58d3
commit f3c411f730

View file

@ -1,4 +1,7 @@
import sys, os
import os, re, sys
match = re.search("(.*?)/[^/]*?$", sys.argv[0])
if match != None:
os.chdir(os.getcwd() + "/" + match.group(1))
source_exts = [".c", ".cpp", ".h"]