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 5
5
6
6
"""
7
7
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
+
8
11
__shortname__ = "Sherlock"
9
12
__longname__ = "Sherlock: Find Usernames Across Social Networks"
10
13
__version__ = "0.14.4"
Original file line number Diff line number Diff line change 7
7
networks.
8
8
"""
9
9
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
+
10
19
import csv
11
20
import signal
12
21
import pandas as pd
13
22
import os
14
23
import re
15
- import sys
16
24
from argparse import ArgumentParser , RawDescriptionHelpFormatter
17
25
from time import monotonic
18
26
You can’t perform that action at this time.
0 commit comments