From 446348ed393733469cd7cf0661e289083cbe86f2 Mon Sep 17 00:00:00 2001 From: padu Date: Fri, 22 Jul 2022 10:59:29 +0300 Subject: [PATCH] fixed bug with relative import; --- parallelbar/__init__.py | 9 +++++---- parallelbar/parallelbar.py | 1 - setup.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/parallelbar/__init__.py b/parallelbar/__init__.py index 147779b..1dadf25 100644 --- a/parallelbar/__init__.py +++ b/parallelbar/__init__.py @@ -1,7 +1,8 @@ -from .parallelbar import progress_map, progress_imap, progress_imapu -import os, sys - -__all__ = ['progress_map', 'progress_imap', 'progress_imapu'] +import os +import sys sys.path.append(os.path.dirname(os.path.realpath(__file__))) +from .parallelbar import progress_map, progress_imap, progress_imapu + +__all__ = ['progress_map', 'progress_imap', 'progress_imapu'] diff --git a/parallelbar/parallelbar.py b/parallelbar/parallelbar.py index 228bbac..86977c2 100644 --- a/parallelbar/parallelbar.py +++ b/parallelbar/parallelbar.py @@ -182,4 +182,3 @@ def progress_imapu(func, tasks, n_cpu=None, chunk_size=1, core_progress=False, c result = _do_parallel(func, 'imap_unordered', tasks, n_cpu, chunk_size, core_progress, context, total, bar_step, disable, None) return result - diff --git a/setup.py b/setup.py index c5dfd4a..513925c 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name='parallelbar', - version='0.2.7', + version='0.2.8', packages=find_packages(), author='Dubovik Pavel', author_email='geometryk@gmail.com',