summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjvoisin2018-04-30 23:46:37 +0200
committerjvoisin2018-04-30 23:46:37 +0200
commit23bc7e8f5fbd1d338b3455d9cc35e2386959e11e (patch)
treeac2f06d6be7f2f0c3ea96abd6283d00bc1605cbe /src
parentd2b2a54a724db89447027e44ecb8f9bbed72cb83 (diff)
Rework the way we're outputing files
Diffstat (limited to 'src')
-rw-r--r--src/abstract.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/abstract.py b/src/abstract.py
index 93e8421..e4838a9 100644
--- a/src/abstract.py
+++ b/src/abstract.py
@@ -1,4 +1,5 @@
1import abc 1import abc
2import os
2 3
3 4
4class AbstractParser(abc.ABC): 5class AbstractParser(abc.ABC):
@@ -7,7 +8,8 @@ class AbstractParser(abc.ABC):
7 8
8 def __init__(self, filename: str): 9 def __init__(self, filename: str):
9 self.filename = filename 10 self.filename = filename
10 self.output_filename = filename + '.cleaned' 11 fname, extension = os.path.splitext(filename)
12 self.output_filename = fname + '.cleaned' + extension
11 13
12 @abc.abstractmethod 14 @abc.abstractmethod
13 def get_meta(self) -> dict: 15 def get_meta(self) -> dict: