]> err.no Git - dak/commitdiff
Simplify which_conf_file.s
authorChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 23:43:51 +0000 (23:43 +0000)
committerChris Lamb <lamby@debian.org>
Sat, 31 Oct 2009 23:00:12 +0000 (23:00 +0000)
daklib/config.py

index 2f24cd3a84aee1598092a652b3963e21252fed5e..bc16f95a7c74f4496da10244984eadd248d531b0 100755 (executable)
@@ -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):
     """