From 30d5d8d98e9845b4eb274359c2e45847737f737d Mon Sep 17 00:00:00 2001 From: tituspijean Date: Sun, 16 Jan 2022 19:46:02 +0100 Subject: [PATCH] Make ciclic read config.py to retrieve PORT --- ciclic | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ciclic b/ciclic index 1b44a7c..9fb4a83 100644 --- a/ciclic +++ b/ciclic @@ -7,8 +7,12 @@ import requests from argh.decorators import named +try: + from config import * +except ImportError: + PORT="4242" -DOMAIN = "localhost:4242" +DOMAIN = "localhost:" + str(PORT) def require_token(): if os.path.exists("token") and open("token").read().strip():