Ensure resolving paths to open uses strings

Refs #5074
This commit is contained in:
Kevin Sawicki 2015-01-15 16:58:08 -08:00
parent 3e56822968
commit 57d020ff65

View File

@ -50,8 +50,9 @@ start = ->
app.removeListener 'open-file', addPathToOpen
app.removeListener 'open-url', addUrlToOpen
cwd = args.executedFrom?.toString() or process.cwd()
args.pathsToOpen = args.pathsToOpen.map (pathToOpen) ->
path.resolve(args.executedFrom ? process.cwd(), pathToOpen.toString())
path.resolve(cwd, pathToOpen.toString())
setupCoffeeScript()
if args.devMode