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

@@ -1,11 +1,11 @@
#!/usr/bin/env python
pathToMtgData = "mtg-data.txt"
############IMPLEMENTATION FOLLOWS############
import os,sys,fnmatch
import re
pathToMtgData = os.path.join(sys.path[0], "mtg-data.txt")
class Card:
def __init__(self, name):
self.name = name