mirror of
https://github.com/sherlock-project/sherlock
synced 2024-11-25 05:10:19 +00:00
Except ImportErrors induced by legacy run method
This commit is contained in:
parent
501cb3dce2
commit
0ece8bf672
2 changed files with 13 additions and 1 deletions
|
@ -5,6 +5,9 @@ networks.
|
|||
|
||||
"""
|
||||
|
||||
# This variable is only used to check for ImportErrors induced by users running as script rather than as module or package
|
||||
importErrTestVar = None
|
||||
|
||||
__shortname__ = "Sherlock"
|
||||
__longname__ = "Sherlock: Find Usernames Across Social Networks"
|
||||
__version__ = "0.14.4"
|
||||
|
|
|
@ -7,12 +7,21 @@ This module contains the main logic to search for usernames at social
|
|||
networks.
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
try:
|
||||
from sherlock.__init__ import importErrTestVar # 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.")
|
||||
print("Most users can simply run `pipx install sherlock-project`, but other options are detailed on the website.")
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue