make tool scripts working-directory agnostic

This commit is contained in:
myk
2013-03-20 17:26:14 +00:00
parent fd90002a60
commit ee97250519
4 changed files with 11 additions and 9 deletions

View File

@@ -2,8 +2,8 @@
import os,sys,fnmatch,re
pathToMtgData = "mtg-data.txt"
pathToSetsMatchTable = "mtgdata-sets-to-forge.txt"
pathToMtgData = os.path.join(sys.path[0], "mtg-data.txt")
pathToSetsMatchTable = os.path.join(sys.path[0], "mtgdata-sets-to-forge.txt")
class cis: # CardInSet
def __init__(self):