vinitshahdeo / PortScanner

A go-to tool for scanning network. Scan all the open ports for a given host with just one click.
https://vinitshahdeo.github.io/PortScanner/
MIT License
133 stars 114 forks source link

Path for config.json is not resolved in scanner.py #19

Closed vinitshahdeo closed 4 years ago

vinitshahdeo commented 4 years ago

The relative path of config.json is not resolved in scanner.py [Reproducible in Windows only]

try:
    with open(file_path('../config.json')) as config_file:
        config = json.load(config_file)

Reported by @Kashish121

vinitshahdeo commented 4 years ago

@Kashish121 I'm working on this! Will raise the PR soon.

vinitshahdeo commented 4 years ago

@Kashish121 If it's working for you, please close this issue.

Kashish121 commented 4 years ago

Yes this works. 👍