diff --git a/CoffeeScript.py b/CoffeeScript.py index 7cb5429..d7db64c 100755 --- a/CoffeeScript.py +++ b/CoffeeScript.py @@ -140,7 +140,7 @@ def finish(self, task): if not self.window.folders(): cakepath = path.dirname(self.window.active_view().file_name()) else: - cakepath = path.join(self.window.folders()[0], 'Cakefile') + cakepath = path.dirname(path.join(self.window.folders()[0], 'Cakefile')) if not path.exists(cakepath): cakepath = path.dirname(self.window.active_view().file_name())