feature: reformat
This commit is contained in:
parent
bb1bac5a77
commit
f7976ba198
1 changed files with 3 additions and 5 deletions
|
|
@ -1,15 +1,10 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
import json
|
import json
|
||||||
import logging
|
|
||||||
import os
|
import os
|
||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
import threading
|
import threading
|
||||||
|
|
||||||
RCSTACK_PATH_NAME = "RCSTACK_PATH"
|
|
||||||
RCSTACK_PATH = os.environ.get(RCSTACK_PATH_NAME)
|
|
||||||
RCSTACK_LOG = os.environ.get("RCSTACK_LOG", "./rcstack_status.log")
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Py3
|
# Py3
|
||||||
from http.server import BaseHTTPRequestHandler, HTTPServer
|
from http.server import BaseHTTPRequestHandler, HTTPServer
|
||||||
|
|
@ -22,6 +17,9 @@ try:
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from pipes import quote as shell_quote # Py2 (Unix)
|
from pipes import quote as shell_quote # Py2 (Unix)
|
||||||
|
|
||||||
|
RCSTACK_PATH_NAME = "RCSTACK_PATH"
|
||||||
|
RCSTACK_PATH = os.environ.get(RCSTACK_PATH_NAME)
|
||||||
|
RCSTACK_LOG = os.environ.get("RCSTACK_LOG", "./rcstack_status.log")
|
||||||
STATUS = {"state": "ready"} # "ready" or "processing"
|
STATUS = {"state": "ready"} # "ready" or "processing"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue