Normalize resource path before creating app

This ensures the drive letter case is consistent with the format
used by require.
This commit is contained in:
Kevin Sawicki
2014-06-03 17:40:08 -07:00
parent f97db691c3
commit b5703ff57a

View File

@@ -109,6 +109,9 @@ parseCommandLine = ->
catch
resourcePath = path.dirname(path.dirname(__dirname))
# Normalize to make sure drive letter case is consistent on Windows
resourcePath = path.normalize(resourcePath) if resourcePath
{resourcePath, pathsToOpen, executedFrom, test, version, pidToKillWhenClosed, devMode, safeMode, newWindow, specDirectory, logFile}
start()