diff --git a/.gitignore b/.gitignore index ebfc9f4..882f342 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ - -# Created by https://www.gitignore.io/api/python -# Edit at https://www.gitignore.io/?templates=python +# Created by https://www.toptal.com/developers/gitignore/api/python +# Edit at https://www.toptal.com/developers/gitignore?templates=python ### Python ### # Byte-compiled / optimized / DLL files @@ -52,22 +51,42 @@ htmlcov/ nosetests.xml coverage.xml *.cover +*.py,cover .hypothesis/ .pytest_cache/ +pytestdebug.log # Translations *.mo *.pot +# Django stuff: +*.log +local_settings.py +db.sqlite3 +db.sqlite3-journal + +# Flask stuff: +instance/ +.webassets-cache + # Scrapy stuff: .scrapy # Sphinx documentation docs/_build/ +doc/_build/ # PyBuilder target/ +# Jupyter Notebook +.ipynb_checkpoints + +# IPython +profile_default/ +ipython_config.py + # pyenv .python-version @@ -78,12 +97,26 @@ target/ # install all needed dependencies. #Pipfile.lock -# celery beat schedule file +# PEP 582; used by e.g. github.com/David-OConnor/pyflow +__pypackages__/ + +# Celery stuff celerybeat-schedule +celerybeat.pid # SageMath parsed files *.sage.py +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ +pythonenv* + # Spyder project settings .spyderproject .spyproject @@ -91,11 +124,6 @@ celerybeat-schedule # Rope project settings .ropeproject -# Mr Developer -.mr.developer.cfg -.project -.pydevproject - # mkdocs documentation /site @@ -107,11 +135,15 @@ dmypy.json # Pyre type checker .pyre/ -# End of https://www.gitignore.io/api/python -.env -.vscode -temp -logs +# pytype static type analyzer +.pytype/ -.idea/ -venv/ \ No newline at end of file +# profiling data +.prof + +# End of https://www.toptal.com/developers/gitignore/api/python + +.vscode/ +.temp/ +.logs/ +.idea/ \ No newline at end of file diff --git a/loconotion/notionparser.py b/loconotion/notionparser.py index cc8fa94..7b06888 100644 --- a/loconotion/notionparser.py +++ b/loconotion/notionparser.py @@ -223,7 +223,7 @@ class Parser: sys.exit() log.info(f"Initialising chromedriver at {chromedriver_path}") - logs_path = Path.cwd() / "logs" / "webdrive.log" + logs_path = Path.cwd() / ".logs" / "webdrive.log" logs_path.parent.mkdir(parents=True, exist_ok=True) chrome_options = Options()