mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user