Skip to content

Commit dc3f853

Browse files
committed
add start script for IDE
1 parent 03939cc commit dc3f853

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

scripts/start_proxy.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import re
2+
import sys
3+
4+
from gunicorn.app.wsgiapp import run
5+
6+
print('\n'.join(sys.path))
7+
# use this entrypoint to start the proxy from the IDE
8+
9+
if __name__ == '__main__':
10+
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
11+
sys.exit(run())
12+

0 commit comments

Comments
 (0)