mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
529 B
33 lines
529 B
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
import sys
|
|
import os
|
|
|
|
# reload(sys)
|
|
# sys.setdefaultencoding('utf8')
|
|
|
|
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
|
|
sys.path.append(os.path.join(BASE_DIR, 'apps'))
|
|
|
|
import re
|
|
import time
|
|
import datetime
|
|
import textwrap
|
|
import getpass
|
|
import readline
|
|
import django
|
|
import paramiko
|
|
import errno
|
|
import pyte
|
|
import operator
|
|
import struct, fcntl, signal, socket, select
|
|
from io import open as copen
|
|
import uuid
|
|
|
|
|
|
os.environ['DJANGO_SETTINGS_MODULE'] = 'jumpserver.settings'
|
|
|
|
|