From 04f69a808acce8cd73769bafd87b3fec171d5319 Mon Sep 17 00:00:00 2001 From: Robert Ferris Date: Tue, 29 Jan 2013 20:42:09 -0500 Subject: [PATCH] Fix issue with run cake task command. --- CoffeeScript.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CoffeeScript.py b/CoffeeScript.py index 7cb5429..eab31de 100755 --- a/CoffeeScript.py +++ b/CoffeeScript.py @@ -143,6 +143,8 @@ def finish(self, task): cakepath = path.join(self.window.folders()[0], 'Cakefile') if not path.exists(cakepath): cakepath = path.dirname(self.window.active_view().file_name()) + else: + cakepath = path.dirname(cakepath) if not path.exists(cakepath): return sublime.status_message("Cakefile not found.")