Skip to content

Commit

Permalink
Fix cyclic imports
Browse files Browse the repository at this point in the history
  • Loading branch information
peace-maker committed Dec 4, 2023
1 parent a9f2a56 commit c59f3dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwnlib/tubes/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
from pwnlib.util.misc import which
from pwnlib.util.misc import normalize_argv_env
from pwnlib.util.packing import _need_bytes
from pwnlib.util.proc import cwd
from pwnlib.util.proc import memory_maps

log = getLogger(__name__)

Expand Down Expand Up @@ -540,6 +538,7 @@ def cwd(self):
'/proc'
"""
try:
from pwnlib.util.proc import cwd
self._cwd = cwd(self.pid)
except Exception:
pass
Expand Down Expand Up @@ -887,6 +886,7 @@ def libs(self):
by the process to the address it is loaded at in the process' address
space.
"""
from pwnlib.util.proc import memory_maps
maps_raw = memory_maps(self.pid)

if not maps_raw:
Expand Down

0 comments on commit c59f3dd

Please sign in to comment.