fix my last patch to use os.path.sep instead of hardcoded "\\"
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user