Guard against no cwd when resolving

Refs #5074
This commit is contained in:
Kevin Sawicki
2015-01-15 17:02:23 -08:00
parent 57d020ff65
commit 97d697f195

View File

@@ -52,7 +52,10 @@ start = ->
cwd = args.executedFrom?.toString() or process.cwd()
args.pathsToOpen = args.pathsToOpen.map (pathToOpen) ->
path.resolve(cwd, pathToOpen.toString())
if cwd
path.resolve(cwd, pathToOpen.toString())
else
path.resolve(pathToOpen.toString())
setupCoffeeScript()
if args.devMode