From 6f308b0274cb117f61115cbad38abd71bf233b11 Mon Sep 17 00:00:00 2001 From: allfro Date: Mon, 22 Oct 2012 07:03:47 -0400 Subject: [PATCH] Fixed settings directory detection by excluding the minor update dirs --- src/canari/commands/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/canari/commands/common.py b/src/canari/commands/common.py index 3ffd126..13568e8 100644 --- a/src/canari/commands/common.py +++ b/src/canari/commands/common.py @@ -31,7 +31,7 @@ def get_commands(module='canari.commands'): def _detect_settings_dir(d): - vs = [ i for i in listdir(d) if path.isdir(sep.join([d, i])) ] + vs = [ i for i in listdir(d) if path.isdir(sep.join([d, i])) if path.isdir(sep.join([d, i, 'config']))] if len(vs) == 1: return sep.join([d, vs[0]]) else: -- 2.45.1