Rewrite compile-coffee script in python.

This commit is contained in:
Cheng Zhao 2013-06-24 16:24:19 +08:00
parent 85d7e7b034
commit 5c48f03dfe
4 changed files with 33 additions and 24 deletions

View file

@ -68,3 +68,10 @@ def safe_mkdir(path):
except OSError as e:
if e.errno != errno.EEXIST:
raise
def get_node_path():
node = os.path.join(os.path.dirname(__file__), '..', '..', 'node', 'node')
if sys.platform == 'win32' or sys.platform == 'cygwin':
node += '.exe'
return node