Fix major bug in fpdb_import

Hat tip to Eric
This commit is contained in:
Worros 2009-02-20 16:06:22 +09:00
parent 08a4d568cc
commit e5ab933659
2 changed files with 4 additions and 1 deletions

View File

@ -88,7 +88,7 @@ class HandHistoryConverter:
self.hhbase = os.path.expanduser(self.hhbase)
self.hhdir = os.path.join(self.hhbase,sitename)
self.gametype = []
self.ofile = os.path.join(self.hhdir,file)
self.ofile = os.path.join(self.hhdir, os.path.basename(file))
self.rexx = FpdbRegex.FpdbRegex()
def __str__(self):

View File

@ -205,6 +205,9 @@ class Importer:
if filter == "EverleafToFpdb":
print "converting ", file
conv = EverleafToFpdb.Everleaf(self.config, file)
elif filter == "FulltiltToFpdb":
print "converting ", file
conv = FulltiltToFpdb.Fulltilt(self.config, file)
else:
print "Unknown filter ", filter
return