From 19dde591cf1672d10c7419d711a9842d2152c1db Mon Sep 17 00:00:00 2001 From: ferrari <maxence.ferrari@gmail.com> Date: Mon, 26 Jun 2023 17:03:52 +0200 Subject: [PATCH] fix defaults path issue --- setup.py | 2 +- src/__init__.py | 2 +- src/auto_git_info.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index af34bc6..77a3cd4 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup, find_packages setup(name='auto_git_info', - version='1.1.0', + version='1.1.1', description='Automatically log your command line arguments and commit sha', author='Maxence Ferrari', py_modules=['auto_git_info'], diff --git a/src/__init__.py b/src/__init__.py index 6849410..a82b376 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -1 +1 @@ -__version__ = "1.1.0" +__version__ = "1.1.1" diff --git a/src/auto_git_info.py b/src/auto_git_info.py index 60de9c8..a222d51 100644 --- a/src/auto_git_info.py +++ b/src/auto_git_info.py @@ -26,8 +26,8 @@ def log_info(args, *, path=None, **kwargs): if '/' in path: os.makedirs(path.rsplit('/', 1)[0], exist_ok=True) else: - if not os.path.isdir('../run_log'): - os.makedirs('../run_log') + if not os.path.isdir('run_log'): + os.makedirs('run_log') path = 'run_log/' + time + '.json' with open(path, 'w') as logfile: repo = git.Repo(os.path.dirname(os.path.abspath(__main__.__file__)), search_parent_directories=True) -- GitLab