最后发现这个文件的bug/www/server/panel/class/projectModel/pythonModel.py
- # ------------------------------
- # Python模型
- # ------------------------------
- import os, re, json, time, shutil, psutil
- import sys
- import ssh_terminal
- import subprocess
- from projectModel.base import projectBase
- import public
- from typing import Union, Dict, TextIO, Optional, Tuple, List, Set
- sys.path.append('/www/server/panel') #mod目录在/panel下,原文件没法调用
- from mod.base import json_response
- from urllib3.util import Url, parse_url
复制代码
|