-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
config.py
59 lines (51 loc) · 1.35 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# -*- coding: utf-8 -*-
#
# gdb-frontend is a easy, flexible and extensionable gui debugger
#
# https://github.com/rohanrhu/gdb-frontend
# https://oguzhaneroglu.com/projects/gdb-frontend/
#
# Licensed under GNU/GPLv3
# Copyright (C) 2019, Oğuzhan Eroğlu (https://oguzhaneroglu.com/) <rohanrhu2@gmail.com>
import os
import json
gdb_path = os.getcwd()
app_path = os.path.dirname(os.path.realpath(__file__))
plugin_order = [
]
"""
Theme plugins (like "theme_light") dont get loaded automatically.
So you can switch between themes with commands in GDB shell: "gf-theme light", "gf-theme default".
"""
disabled_plugins = [
"hello"
]
VERBOSE = False
HOST_ADDRESS = "127.0.0.1"
BIND_ADDRESS = "127.0.0.1"
HTTP_PORT = 5550
PLUGINS_DIR = os.path.join(app_path, "plugins")
IS_READONLY = False
MMAP_PATH = False
WORKDIR = False
CREDENTIALS = None
TERMINAL_ID = False
MAX_ITERATIONS_TO_RET = 1000
URL_BASE = "/"
def init():
global VERBOSE
global HOST_ADDRESS
global BIND_ADDRESS
global HTTP_PORT
global PLUGINS_DIR
global IS_READONLY
global MMAP_PATH
global WORKDIR
global CREDENTIALS
global TERMINAL_ID
global MAX_ITERATIONS_TO_RET
global URL_BASE
def setJSON(config_json):
new_config = json.loads(config_json)
for k, v in new_config.items():
globals()[k] = v