Changeset - a8c8b32aee5a
[Not reviewed]
default
0 1 0
Mads Kiilerich - 6 years ago 2020-02-04 03:06:29
mads@kiilerich.com
Grafted from: f4df4e9cd24b
cli: fix missing import of kallithea.config.middleware

Don't rely on other imports making it available as side effect.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/bin/kallithea_cli_base.py
Show inline comments
 
@@ -14,24 +14,25 @@
 

	
 
import functools
 
import io
 
import logging.config
 
import os
 
import re
 
import sys
 

	
 
import click
 
import paste.deploy
 

	
 
import kallithea
 
import kallithea.config.middleware
 

	
 

	
 
# kallithea_cli is usually invoked through the 'kallithea-cli' wrapper script
 
# that is installed by setuptools, as specified in setup.py console_scripts
 
# entry_points. The script will be using the right virtualenv (if any), and for
 
# Unix, it will contain #! pointing at the right python executable. The script
 
# also makes sure sys.argv[0] points back at the script path, and that is what
 
# can be used to invoke 'kallithea-cli' later.
 
kallithea_cli_path = sys.argv[0]
 

	
 

	
 
def read_config(ini_file_name, strip_section_prefix):
0 comments (0 inline, 0 general)