Skip to content

Commit

Permalink
Merge branch '2204-alert-if-script' into release/0.15.0-rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
ppfeister committed Jul 8, 2024
2 parents 9aa8242 + f1d4a84 commit 2680cc8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 3 additions & 0 deletions sherlock_project/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"""

# This variable is only used to check for ImportErrors induced by users running as script rather than as module or package
import_error_test_var = None

__shortname__ = "Sherlock"
__longname__ = "Sherlock: Find Usernames Across Social Networks"
__version__ = "0.14.4"
10 changes: 9 additions & 1 deletion sherlock_project/sherlock.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,20 @@
networks.
"""

import sys

try:
from sherlock.__init__ import import_error_test_var # noqa: F401
except ImportError:
print("Did you run Sherlock with `python3 sherlock/sherlock.py ...`?")
print("This is an outdated method. Please see https://sherlockproject.xyz/installation for up to date instructions.")
sys.exit(1)

import csv
import signal
import pandas as pd
import os
import re
import sys
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from time import monotonic

Expand Down

0 comments on commit 2680cc8

Please sign in to comment.