# HG changeset patch # User Mads Kiilerich # Date 2020-03-31 22:49:27 # Node ID c33d3aa26c19a3aa1841fd08f2633b0e17e20298 # Parent 75e46ebf176d8c13a988479f84c9aee476c7e8ae vcs: drop unused VCSRC_PATH diff --git a/kallithea/lib/vcs/conf/settings.py b/kallithea/lib/vcs/conf/settings.py --- a/kallithea/lib/vcs/conf/settings.py +++ b/kallithea/lib/vcs/conf/settings.py @@ -1,23 +1,5 @@ -import os -import tempfile - from kallithea.lib.vcs.utils import aslist -from kallithea.lib.vcs.utils.paths import get_user_home - - -def abspath(*p): - return os.path.abspath(os.path.join(*p)) -VCSRC_PATH = os.environ.get('VCSRC_PATH') - -if not VCSRC_PATH: - HOME_ = get_user_home() - if not HOME_: - HOME_ = tempfile.gettempdir() - -VCSRC_PATH = VCSRC_PATH or abspath(HOME_, '.vcsrc') -if os.path.isdir(VCSRC_PATH): - VCSRC_PATH = os.path.join(VCSRC_PATH, '__init__.py') # list of default encoding used in safe_str/safe_bytes methods DEFAULT_ENCODINGS = aslist('utf-8')