Skip to content

Commit

Permalink
Use os.path.join to build file path for data file
Browse files Browse the repository at this point in the history
  • Loading branch information
cblument committed Dec 31, 2018
1 parent cf7ec54 commit ce53663
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ def sherlock(username, verbose=False, tor=False, unique_tor=False):
}

# Load the data
script_directory = os.path.dirname(os.path.realpath(__file__))
with open(script_directory + "/data.json", "r", encoding="utf-8") as raw:
data_file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "data.json")
with open(data_file_path, "r", encoding="utf-8") as raw:
data = json.load(raw)

# Allow 1 thread for each external service, so `len(data)` threads total
Expand Down

0 comments on commit ce53663

Please sign in to comment.