fix my last patch to use os.path.sep instead of hardcoded "\\"
This commit is contained in:
parent
22c9fd6acb
commit
4baa9835f9
|
@ -79,7 +79,7 @@ class Everleaf(HandHistoryConverter):
|
||||||
self.re_Board = re.compile(r"\[ (?P<CARDS>.+) \]")
|
self.re_Board = re.compile(r"\[ (?P<CARDS>.+) \]")
|
||||||
|
|
||||||
try:
|
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:
|
except:
|
||||||
self.ofile = os.path.join(self.hhdir, "x"+strftime("%d-%m-%y")+os.path.basename(file))
|
self.ofile = os.path.join(self.hhdir, "x"+strftime("%d-%m-%y")+os.path.basename(file))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user