OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4737
/
usr
/
lib
/
python3
/
dist-packages
/
setuptools
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/12/2025 06:19:49 PM
rwxr-xr-x
📄
__init__.py
9.04 KB
08/18/2023 12:07:38 PM
rw-r--r--
📁
_distutils
-
06/12/2025 06:19:49 PM
rwxr-xr-x
📄
_entry_points.py
2.18 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
_imp.py
2.38 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
_importlib.py
1.43 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
_itertools.py
675 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📄
_normalization.py
3.62 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
_path.py
1.03 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
_reqs.py
882 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📁
_vendor
-
06/12/2025 06:19:49 PM
rwxr-xr-x
📄
archive_util.py
7.16 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
build_meta.py
19.62 KB
08/18/2023 12:07:38 PM
rw-r--r--
📁
command
-
06/12/2025 06:19:49 PM
rwxr-xr-x
📁
config
-
06/12/2025 06:19:49 PM
rwxr-xr-x
📄
dep_util.py
936 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📄
depends.py
5.4 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
discovery.py
20.65 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
dist.py
45.74 KB
05/28/2025 05:00:32 PM
rw-r--r--
📄
errors.py
2.41 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
extension.py
5.46 KB
08/18/2023 12:07:38 PM
rw-r--r--
📁
extern
-
06/12/2025 06:19:49 PM
rwxr-xr-x
📄
glob.py
4.75 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
installer.py
4.87 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
launch.py
812 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📄
logging.py
1.21 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
monkey.py
4.58 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
msvc.py
46.38 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
namespaces.py
2.97 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
package_index.py
38.96 KB
05/28/2025 05:00:32 PM
rw-r--r--
📄
py312compat.py
330 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📄
sandbox.py
14.01 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
script (dev).tmpl
218 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📄
script.tmpl
138 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📄
unicode_utils.py
941 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📄
version.py
161 bytes
08/18/2023 12:07:38 PM
rw-r--r--
📄
warnings.py
3.61 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
wheel.py
8.43 KB
08/18/2023 12:07:38 PM
rw-r--r--
📄
windows_support.py
719 bytes
08/18/2023 12:07:38 PM
rw-r--r--
Editing: _imp.py
Close
""" Re-implementation of find_module and get_frozen_object from the deprecated imp module. """ import os import importlib.util import importlib.machinery from importlib.util import module_from_spec PY_SOURCE = 1 PY_COMPILED = 2 C_EXTENSION = 3 C_BUILTIN = 6 PY_FROZEN = 7 def find_spec(module, paths): finder = ( importlib.machinery.PathFinder().find_spec if isinstance(paths, list) else importlib.util.find_spec ) return finder(module, paths) def find_module(module, paths=None): """Just like 'imp.find_module()', but with package support""" spec = find_spec(module, paths) if spec is None: raise ImportError("Can't find %s" % module) if not spec.has_location and hasattr(spec, 'submodule_search_locations'): spec = importlib.util.spec_from_loader('__init__.py', spec.loader) kind = -1 file = None static = isinstance(spec.loader, type) if ( spec.origin == 'frozen' or static and issubclass(spec.loader, importlib.machinery.FrozenImporter) ): kind = PY_FROZEN path = None # imp compabilty suffix = mode = '' # imp compatibility elif ( spec.origin == 'built-in' or static and issubclass(spec.loader, importlib.machinery.BuiltinImporter) ): kind = C_BUILTIN path = None # imp compabilty suffix = mode = '' # imp compatibility elif spec.has_location: path = spec.origin suffix = os.path.splitext(path)[1] mode = 'r' if suffix in importlib.machinery.SOURCE_SUFFIXES else 'rb' if suffix in importlib.machinery.SOURCE_SUFFIXES: kind = PY_SOURCE elif suffix in importlib.machinery.BYTECODE_SUFFIXES: kind = PY_COMPILED elif suffix in importlib.machinery.EXTENSION_SUFFIXES: kind = C_EXTENSION if kind in {PY_SOURCE, PY_COMPILED}: file = open(path, mode) else: path = None suffix = mode = '' return file, path, (suffix, mode, kind) def get_frozen_object(module, paths=None): spec = find_spec(module, paths) if not spec: raise ImportError("Can't find %s" % module) return spec.loader.get_code(module) def get_module(module, paths, info): spec = find_spec(module, paths) if not spec: raise ImportError("Can't find %s" % module) return module_from_spec(spec)