fix my last patch to use os.path.sep instead of hardcoded "\\"

This commit is contained in:
eblade 2009-02-21 06:25:12 -05:00
parent 22c9fd6acb
commit 4baa9835f9

View File

@ -79,7 +79,7 @@ class Everleaf(HandHistoryConverter):
self.re_Board = re.compile(r"\[ (?P<CARDS>.+) \]")
try:
self.ofile = os.path.join(self.hhdir, file.split("\\")[-2]+"-"+os.path.basename(file))
self.ofile = os.path.join(self.hhdir, file.split(os.path.sep)[-2]+"-"+os.path.basename(file))
except:
self.ofile = os.path.join(self.hhdir, "x"+strftime("%d-%m-%y")+os.path.basename(file))