mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
remove os require use process.platform instead
This commit is contained in:
@@ -4,7 +4,6 @@ _ = require 'underscore-plus'
|
||||
{Emitter} = require 'emissary'
|
||||
fs = require 'fs-plus'
|
||||
Q = require 'q'
|
||||
os = require 'os'
|
||||
|
||||
Package = require './package'
|
||||
ThemePackage = require './theme-package'
|
||||
@@ -44,10 +43,10 @@ class PackageManager
|
||||
|
||||
# Public: Get the path to the apm command
|
||||
getApmPath: ->
|
||||
@commandName = 'apm'
|
||||
if os.platform() == 'win32'
|
||||
@commandName += '.cmd'
|
||||
@apmPath ?= path.resolve(__dirname, '..', 'apm', 'node_modules', 'atom-package-manager', 'bin', @commandName)
|
||||
commandName = 'apm'
|
||||
if process.platform == 'win32'
|
||||
commandName += '.cmd'
|
||||
@apmPath ?= path.resolve(__dirname, '..', 'apm', 'node_modules', 'atom-package-manager', 'bin', commandName)
|
||||
|
||||
# Public: Get the paths being used to look for packages.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user