Changeset - 2c6211c9ea07
[Not reviewed]
0 1 0
Brett Smith - 6 years ago 2017-12-30 15:18:33
brettcsmith@brettcsmith.org
main: Ensure the source_dir variable is a string.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
import2ledger/__main__.py
Show inline comments
...
 
@@ -34,13 +34,13 @@ class FileImporter:
 
                    importers.append((importer, template))
 
        if not importers:
 
            raise errors.UserInputFileError("no importers available", in_file.name)
 
        source_vars = {
 
            'source_abspath': in_path.absolute().as_posix(),
 
            'source_absdir': in_path.absolute().parent.as_posix(),
 
            'source_dir': in_path.parent,
 
            'source_dir': in_path.parent.as_posix(),
 
            'source_name': in_path.name,
 
            'source_path': in_path.as_posix(),
 
            'source_stem': in_path.stem,
 
        }
 
        with contextlib.ExitStack() as exit_stack:
 
            output_path = self.config.get_output_path()
0 comments (0 inline, 0 general)