Skip to content

Commit

Permalink
remove PathManager
Browse files Browse the repository at this point in the history
which was here only for python < 3.8
  • Loading branch information
nim65s committed Jul 30, 2024
1 parent 5714a7f commit c8cada1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions python/eigenpy/windows_dll_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,6 @@ def get_dll_paths():
return eigenpy_paths.split(os.pathsep)


class PathManager(contextlib.AbstractContextManager):
"""Restore PATH state after importing Python module"""

def add_dll_directory(self, dll_dir: str):
os.environ["PATH"] += os.pathsep + dll_dir

def __enter__(self):
self.old_path = os.environ["PATH"]
return self

def __exit__(self, *exc_details):
os.environ["PATH"] = self.old_path


class DllDirectoryManager(contextlib.AbstractContextManager):
"""Restore DllDirectory state after importing Python module"""

Expand Down

0 comments on commit c8cada1

Please sign in to comment.