add: 'script' function
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
import os
|
|
||||||
from common.jsonrpc2.server import *
|
|
||||||
script = os.path.join(os.path.dirname(os.path.realpath(__file__)), "client.js")
|
|
||||||
|
|
||||||
__all__ = [
|
from common.jsonrpc2.server import (
|
||||||
"Request",
|
Request,
|
||||||
"Response",
|
Response,
|
||||||
"Error",
|
Error,
|
||||||
"History",
|
History,
|
||||||
"ConnectionContext",
|
ConnectionContext,
|
||||||
"define",
|
define,
|
||||||
"remove",
|
remove,
|
||||||
"script",
|
url,
|
||||||
"url",
|
run
|
||||||
"run",
|
)
|
||||||
]
|
|
||||||
|
def script():
|
||||||
|
with open(__file__.replace('__init__.py', 'client.js'), 'r') as file:
|
||||||
|
return file.read()
|
||||||
|
|||||||
Reference in New Issue
Block a user