From f4584fffe563c0d947c4fc7b30981eeef463efd6 Mon Sep 17 00:00:00 2001 From: Chris Lamb Date: Fri, 30 Oct 2009 23:43:51 +0000 Subject: [PATCH] Simplify which_conf_file.s --- daklib/config.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/daklib/config.py b/daklib/config.py index 2f24cd3a..bc16f95a 100755 --- a/daklib/config.py +++ b/daklib/config.py @@ -39,10 +39,7 @@ from singleton import Singleton default_config = "/etc/dak/dak.conf" #: default dak config, defines host properties def which_conf_file(): - if os.getenv("DAK_CONFIG"): - return os.getenv("DAK_CONFIG") - else: - return default_config + return os.getenv("DAK_CONFIG", default_config) class Config(Singleton): """ -- 2.39.5