Permalink
Browse files

Fixed directory changing

  • Loading branch information...
1 parent 019eb14 commit 1850851a4762858e17696eaee1dfb65cba238930 @Sworddragon Sworddragon committed with oy May 6, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/update_localization.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))
source_exts = [".c", ".cpp", ".h"]

0 comments on commit 1850851

Please sign in to comment.