Skip to content

Commit

Permalink
fixed bug with relative import;
Browse files Browse the repository at this point in the history
  • Loading branch information
padu committed Jul 22, 2022
1 parent 6c2f21c commit 446348e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
9 changes: 5 additions & 4 deletions parallelbar/__init__.py
Original file line number Diff line number Diff line change
@@ -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']
1 change: 0 additions & 1 deletion parallelbar/parallelbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 446348e

Please sign in to comment.