From e96691ea7d1eb5fe675252ee12a1897c3e9d8b5f Mon Sep 17 00:00:00 2001 From: Nicolas Porter Date: Fri, 20 Sep 2013 15:06:26 -0400 Subject: [PATCH] Added logging statements in execute file. --- lib/execute.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/execute.py b/lib/execute.py index 79588fe..78e5d44 100644 --- a/lib/execute.py +++ b/lib/execute.py @@ -3,6 +3,11 @@ import sublime import sys +try: + from .utils import log +except ValueError: + from utils import log + PLATFORM_IS_WINDOWS = (sublime.platform() == 'windows') @@ -11,12 +16,19 @@ def execute(args, message='', path=None, cwd=None): # This is needed for Windows... not sure why. See: # https://github.com/surjikal/sublime-coffee-compile/issues/13 if path: + log('Path:') + log("\n".join(path)) path = os.pathsep.join(path) if PLATFORM_IS_WINDOWS: + log('Platform is Windows!') os.environ['PATH'] = path path = None env = {'PATH': path} if path else None + log('Env:') + log(env) + log('Args:') + log(args) process = subprocess.Popen(args, stdin=subprocess.PIPE,