Browse Source

cli: remove xml file after processing it

main
Holger Frey 3 years ago
parent
commit
2a8ae4553b
  1. 4
      xinvoice/__init__.py

4
xinvoice/__init__.py

@ -5,7 +5,8 @@ Parsing X-Invoice files @@ -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): @@ -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)

Loading…
Cancel
Save