mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
Merge pull request #39 from tituspijean/ciclic-import-config
Make ciclic read config.py to retrieve PORT
This commit is contained in:
commit
62068de646
1 changed files with 5 additions and 1 deletions
6
ciclic
6
ciclic
|
@ -7,8 +7,12 @@ import requests
|
||||||
|
|
||||||
from argh.decorators import named
|
from argh.decorators import named
|
||||||
|
|
||||||
|
try:
|
||||||
|
from config import *
|
||||||
|
except ImportError:
|
||||||
|
PORT="4242"
|
||||||
|
|
||||||
DOMAIN = "localhost:4242"
|
DOMAIN = "localhost:" + str(PORT)
|
||||||
|
|
||||||
def require_token():
|
def require_token():
|
||||||
if os.path.exists("token") and open("token").read().strip():
|
if os.path.exists("token") and open("token").read().strip():
|
||||||
|
|
Loading…
Add table
Reference in a new issue