docker: migrate to python

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-11-11 00:00:00 +00:00
parent 32420eec33
commit 403d4a9d06
4 changed files with 79 additions and 36 deletions

View File

@@ -24,6 +24,7 @@ import urllib
import urllib.request
this_module = sys.modules[__name__]
repo_short_id = 'lkmc'
# https://stackoverflow.com/questions/20010199/how-to-determine-if-a-process-runs-inside-lxc-docker
in_docker = os.path.exists('/.dockerenv')
root_dir = os.path.dirname(os.path.abspath(__file__))