Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ def get_absolute_path(relative_path):

# Getting port range values from config.json
try:
with open(get_absolute_path('../config.json')) as config_file:
# Adjusted path to move two levels up to find config.json
with open(get_absolute_path('../../config.json')) as config_file:
config = json.load(config_file)
print get_absolute_path('../config.json')
print(get_absolute_path('../../config.json')) # Optional, for debugging
range_high = int(config['range']['high'])
range_low = int(config['range']['low'])
# defining number of threads running concurrently
Expand Down