GRAYBYTE WORDPRESS FILE MANAGER9660

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/alt/python27/lib/python2.7/site-packages/pip/_internal/cli//main.py
"""Primary application entrypoint.
"""
from __future__ import absolute_import

import locale
import logging
import os
import sys

from pip._internal.cli.autocompletion import autocomplete
from pip._internal.cli.main_parser import parse_command
from pip._internal.commands import create_command
from pip._internal.exceptions import PipError
from pip._internal.utils import deprecation
from pip._internal.utils.typing import MYPY_CHECK_RUNNING

if MYPY_CHECK_RUNNING:
    from typing import List, Optional

logger = logging.getLogger(__name__)


# Do not import and use main() directly! Using it directly is actively
# discouraged by pip's maintainers. The name, location and behavior of
# this function is subject to change, so calling it directly is not
# portable across different pip versions.

# In addition, running pip in-process is unsupported and unsafe. This is
# elaborated in detail at
# https://pip.pypa.io/en/stable/user_guide/#using-pip-from-your-program.
# That document also provides suggestions that should work for nearly
# all users that are considering importing and using main() directly.

# However, we know that certain users will still want to invoke pip
# in-process. If you understand and accept the implications of using pip
# in an unsupported manner, the best approach is to use runpy to avoid
# depending on the exact location of this entry point.

# The following example shows how to use runpy to invoke pip in that
# case:
#
#     sys.argv = ["pip", your, args, here]
#     runpy.run_module("pip", run_name="__main__")
#
# Note that this will exit the process after running, unlike a direct
# call to main. As it is not safe to do any processing after calling
# main, this should not be an issue in practice.

def main(args=None):
    # type: (Optional[List[str]]) -> int
    if args is None:
        args = sys.argv[1:]

    # Configure our deprecation warnings to be sent through loggers
    deprecation.install_warning_logger()

    autocomplete()

    try:
        cmd_name, cmd_args = parse_command(args)
    except PipError as exc:
        sys.stderr.write("ERROR: {}".format(exc))
        sys.stderr.write(os.linesep)
        sys.exit(1)

    # Needed for locale.getpreferredencoding(False) to work
    # in pip._internal.utils.encoding.auto_decode
    try:
        locale.setlocale(locale.LC_ALL, '')
    except locale.Error as e:
        # setlocale can apparently crash if locale are uninitialized
        logger.debug("Ignoring error %s when setting locale", e)
    command = create_command(cmd_name, isolated=("--isolated" in cmd_args))

    return command.main(cmd_args)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 22:49:22
root / linksafe
0755
__init__.py
0.129 KB
November 13 2023 21:11:11
root / linksafe
0644
__init__.pyc
0.311 KB
November 13 2023 21:11:11
root / linksafe
0644
autocompletion.py
6.394 KB
November 13 2023 21:11:11
root / linksafe
0644
autocompletion.pyc
5.739 KB
November 13 2023 21:11:11
root / linksafe
0644
base_command.py
9.084 KB
November 13 2023 21:11:11
root / linksafe
0644
base_command.pyc
8.42 KB
November 13 2023 21:11:11
root / linksafe
0644
cmdoptions.py
28.107 KB
November 13 2023 21:11:11
root / linksafe
0644
cmdoptions.pyc
26.807 KB
November 13 2023 21:11:11
root / linksafe
0644
command_context.py
0.952 KB
November 13 2023 21:11:11
root / linksafe
0644
command_context.pyc
1.944 KB
November 13 2023 21:11:11
root / linksafe
0644
main.py
2.555 KB
November 13 2023 21:11:11
root / linksafe
0644
main.pyc
1.842 KB
November 13 2023 21:11:11
root / linksafe
0644
main_parser.py
2.776 KB
November 13 2023 21:11:11
root / linksafe
0644
main_parser.pyc
2.814 KB
November 13 2023 21:11:11
root / linksafe
0644
parser.py
9.258 KB
November 13 2023 21:11:11
root / linksafe
0644
parser.pyc
11.892 KB
November 13 2023 21:11:11
root / linksafe
0644
progress_bars.py
8.907 KB
November 13 2023 21:11:11
root / linksafe
0644
progress_bars.pyc
11.746 KB
November 13 2023 21:11:11
root / linksafe
0644
req_command.py
14.777 KB
November 13 2023 21:11:11
root / linksafe
0644
req_command.pyc
13.044 KB
November 13 2023 21:11:11
root / linksafe
0644
spinners.py
5.38 KB
November 13 2023 21:11:11
root / linksafe
0644
spinners.pyc
7.479 KB
November 13 2023 21:11:11
root / linksafe
0644
status_codes.py
0.152 KB
November 13 2023 21:11:11
root / linksafe
0644
status_codes.pyc
0.471 KB
November 13 2023 21:11:11
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF