Fix error when running apm in packages

This commit is contained in:
Cheng Zhao
2015-04-03 18:25:45 +08:00
parent 33d5a2b3fc
commit 6910c81b46

View File

@@ -134,7 +134,7 @@ class PackageManager
commandName = 'apm'
commandName += '.cmd' if process.platform is 'win32'
apmRoot = path.resolve(__dirname, '..', '..', 'apm')
apmRoot = path.join(process.resourcesPath, 'apm')
@apmPath = path.join(apmRoot, 'bin', commandName)
unless fs.isFileSync(@apmPath)
@apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)