Skip to content

Commit 6048f84

Browse files
committed
run script
1 parent 30572ab commit 6048f84

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

main.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env python3
2+
import os
3+
24
import uvloop
35

46
uvloop.install()
@@ -131,8 +133,10 @@ def server():
131133
def main():
132134
if len(sys.argv) < 2:
133135
# run default configuration
136+
# server
134137
p = subprocess.Popen(["python", sys.argv[0], 'server'])
135138

139+
# and core
136140
code = asyncio.get_event_loop().run_until_complete(core())
137141
p.wait()
138142
return code

run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
3+
source ./env/bin/activate
4+
5+
python main.py

0 commit comments

Comments
 (0)