mapperplus icon indicating copy to clipboard operation
mapperplus copied to clipboard

Using dynamic path rather than hardcoded

Open abdilahrf opened this issue 1 year ago • 1 comments

from pathlib import Path

TOOLS_PATH=Path(__file__).resolve().parent


..SNIPP...

cmd = f"node {TOOLS_PATH}mapper.js --url={url} --target={sub_directory}"
        subprocess.run(cmd, shell=True)

This improvement will help much,so we can set the mapperplus.py globally in our shell environment and then calling it to run within our target folder, without have to jump inside the folder of the tools everytime we want to run the tools.

abdilahrf avatar Nov 10 '24 06:11 abdilahrf

Here is what i suggest that we can use #4

abdilahrf avatar Nov 10 '24 06:11 abdilahrf

Thank you @abdilahrf for your useful suggestions .. this also should be fixed in the next release 💯

midoxnet avatar Aug 15 '25 13:08 midoxnet