diff --git a/xinvoice/__init__.py b/xinvoice/__init__.py index 67b77b8..b25b609 100644 --- a/xinvoice/__init__.py +++ b/xinvoice/__init__.py @@ -5,7 +5,8 @@ Parsing X-Invoice files __version__ = "0.0.1" -# from bs4 import BeautifulSoup + +import pathlib import click import pyperclip @@ -69,3 +70,4 @@ def parse(file_path): @click.argument("file_path", type=click.Path(exists=True)) def main(file_path): print(parse(file_path)) + pathlib.Path(file_path).unlink(missing_ok=True)