From 50860856b0986396ece2f6fe58fafeb38ef0ea0b Mon Sep 17 00:00:00 2001 From: kuyaki Date: Mon, 5 Oct 2020 19:09:24 +0300 Subject: [PATCH] Fixed an issue with init script.... --- gitmodules/__init__.py | 7 ++++++- gitmodules/gitmodules.py | 3 --- setup.py | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/gitmodules/__init__.py b/gitmodules/__init__.py index affa642..ce6db26 100644 --- a/gitmodules/__init__.py +++ b/gitmodules/__init__.py @@ -3,4 +3,9 @@ __credits__ = ['kuyaki'] __maintainer__ = 'kuyaki' __date__ = '2020/10/02' -__version__ = '0.0.2' +__version__ = '0.0.3' + +from gitmodules.gitmodules import extend_paths + + +extend_paths() diff --git a/gitmodules/gitmodules.py b/gitmodules/gitmodules.py index 05cbc36..4652ab2 100644 --- a/gitmodules/gitmodules.py +++ b/gitmodules/gitmodules.py @@ -20,6 +20,3 @@ def extend_paths(cwd="."): if os.path.exists(git_module_path): sys.path.append(git_module_path) extend_paths(git_module_path) - - -extend_paths() diff --git a/setup.py b/setup.py index c156956..2ccca18 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ author=gitmodules.__author__, author_email='kuzma.yakimets@huawei.com', url='https://github.com/kuyaki/gitmodules', - download_url='https://github.com/kuyaki/gitmodules/archive/v0.0.2.tar.gz', + download_url='https://github.com/kuyaki/gitmodules/archive/v0.0.3.tar.gz', keywords=['git', 'submodules', 'submodule', 'module', 'gitmodules', 'gitmodule', 'python', 'import'], classifiers=[ 'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable"