Skip to content

Commit

Permalink
strip path
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Jun 20, 2024
1 parent 885dd4a commit e07e79d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pwnshop/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ def main():
if getattr(args, "import", None):
imports = glob.glob(getattr(args, "import"))
for i in imports:
i = i.rstrip("/")
sys.path.append(os.path.realpath(os.path.dirname(i)))
try:
module_name = os.path.basename(i).split(".py")[0]
Expand Down

0 comments on commit e07e79d

Please sign in to comment.