File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 55
66"""
77
8+ # This variable is only used to check for ImportErrors induced by users running as script rather than as module or package
9+ import_error_test_var = None
10+
811__shortname__ = "Sherlock"
912__longname__ = "Sherlock: Find Usernames Across Social Networks"
1013__version__ = "0.14.4"
Original file line number Diff line number Diff line change 77networks.
88"""
99
10+ import sys
11+
12+ try :
13+ from sherlock .__init__ import import_error_test_var # noqa: F401
14+ except ImportError :
15+ print ("Did you run Sherlock with `python3 sherlock/sherlock.py ...`?" )
16+ print ("This is an outdated method. Please see https://sherlockproject.xyz/installation for up to date instructions." )
17+ sys .exit (1 )
18+
1019import csv
1120import signal
1221import pandas as pd
1322import os
1423import re
15- import sys
1624from argparse import ArgumentParser , RawDescriptionHelpFormatter
1725from time import monotonic
1826
You can’t perform that action at this time.
0 commit comments