summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-01-22 14:34:47 +0100
committeremkael <emkael@tlen.pl>2018-01-22 14:34:47 +0100
commitb216c52e6a13c746787b1885deceef60a689970a (patch)
tree532e187c400918b40179818cadafd02f80bc22d2 /jfr_playoff
parent192620204e437b73f3959a4b1dc78d0b22cbcc64 (diff)
Bugfix: paths within working directory don't append a separator at the beginning
Diffstat (limited to 'jfr_playoff')
-rw-r--r--jfr_playoff/filemanager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/jfr_playoff/filemanager.py b/jfr_playoff/filemanager.py
index 5cd2a80..75eb6be 100644
--- a/jfr_playoff/filemanager.py
+++ b/jfr_playoff/filemanager.py
@@ -12,7 +12,9 @@ class PlayoffFileManager(object):
self.output_file = settings.get('output')
self.output_path = os.path.dirname(
self.output_file
- ).strip(os.sep) + os.sep
+ ).strip(os.sep)
+ if len(self.output_path) > 0:
+ self.output_path += os.sep
self.files = set()
def reset(self):