From 99be4a286e209a55a414c4c34e2cc9805d0a4c6b Mon Sep 17 00:00:00 2001 From: Nico Kratky Date: Tue, 22 Mar 2016 20:05:06 +0100 Subject: [PATCH] used variable instead of calling os.listdir() again --- Sublime/fl0w/fl0w.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sublime/fl0w/fl0w.py b/Sublime/fl0w/fl0w.py index a9227e9..fb918da 100644 --- a/Sublime/fl0w/fl0w.py +++ b/Sublime/fl0w/fl0w.py @@ -188,7 +188,7 @@ class Fl0wCommand(sublime_plugin.WindowCommand): folder = self.window.folders()[0] files = os.listdir(folder) if not ".no-fl0w" in files: - if not ".flow" in os.listdir(folder): + if not ".flow" in files: if sublime.ok_cancel_dialog("""We've detected that this is your first time using fl0w in your current directory. We don't want to be responsible for any lost work so please backup your files before proceding. (An empty project directory is recommended but not necessary.)""", "Yes"):