MCPcopy
hub / github.com/shadowsocks/shadowsocks / find_config

Function find_config

shadowsocks/shell.py:113–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111
112
113def find_config():
114 config_path = 'config.json'
115 if os.path.exists(config_path):
116 return config_path
117 config_path = os.path.join(os.path.dirname(__file__), '../', 'config.json')
118 if os.path.exists(config_path):
119 return config_path
120 return None
121
122
123def check_config(config, is_local):

Callers 1

get_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected