We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30572ab commit 6048f84Copy full SHA for 6048f84
main.py
@@ -1,4 +1,6 @@
1
#!/usr/bin/env python3
2
+import os
3
+
4
import uvloop
5
6
uvloop.install()
@@ -131,8 +133,10 @@ def server():
131
133
def main():
132
134
if len(sys.argv) < 2:
135
# run default configuration
136
+ # server
137
p = subprocess.Popen(["python", sys.argv[0], 'server'])
138
139
+ # and core
140
code = asyncio.get_event_loop().run_until_complete(core())
141
p.wait()
142
return code
run.sh
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+source ./env/bin/activate
+python main.py
0 commit comments