File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-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
+ importErrTestVar = 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 importErrTestVar # 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
+ print ("Most users can simply run `pipx install sherlock-project`, but other options are detailed on the website." )
18
+ sys .exit (1 )
19
+
10
20
import csv
11
21
import signal
12
22
import pandas as pd
13
23
import os
14
24
import re
15
- import sys
16
25
from argparse import ArgumentParser , RawDescriptionHelpFormatter
17
26
from time import monotonic
18
27
You can’t perform that action at this time.
0 commit comments