diff --git a/trains/task.py b/trains/task.py index b3a6dfa0..99dab3cd 100644 --- a/trains/task.py +++ b/trains/task.py @@ -1793,7 +1793,7 @@ class Task(_Task): if self._detect_repo_async_thread.is_alive(): # if negative timeout, just kill the thread: if timeout is not None and timeout < 0: - from .utilities.os.lowlevel import kill_thread + from .utilities.lowlevel.threads import kill_thread kill_thread(self._detect_repo_async_thread) else: self.log.info('Waiting for repository detection and full package requirement analysis') @@ -1803,7 +1803,7 @@ class Task(_Task): self.log.info('Repository and package analysis timed out ({} sec), ' 'giving up'.format(timeout)) # done waiting, kill the thread - from .utilities.os.lowlevel import kill_thread + from .utilities.lowlevel.threads import kill_thread kill_thread(self._detect_repo_async_thread) else: self.log.info('Finished repository detection and package analysis') diff --git a/trains/utilities/os/__init__.py b/trains/utilities/lowlevel/__init__.py similarity index 100% rename from trains/utilities/os/__init__.py rename to trains/utilities/lowlevel/__init__.py diff --git a/trains/utilities/os/lowlevel.py b/trains/utilities/lowlevel/threads.py similarity index 100% rename from trains/utilities/os/lowlevel.py rename to trains/utilities/lowlevel/threads.py diff --git a/trains/utilities/pigar/__main__.py b/trains/utilities/pigar/__main__.py index 506f249c..a63c7cec 100644 --- a/trains/utilities/pigar/__main__.py +++ b/trains/utilities/pigar/__main__.py @@ -39,7 +39,7 @@ class GenerateReqs(object): from ...version import __version__ self._force_modules_reqs[our_module] = __version__ - # make the entry point absolute (relative o the root path) + # make the entry point absolute (relative to the root path) if entry_point_filename and not os.path.isabs(entry_point_filename): entry_point_filename = os.path.join(self._project_path, entry_point_filename) \ if os.path.isdir(self._project_path) else None