 
 fs = require('fs')
 path = require('path')
-BufferedProcess = require('atom').BufferedProcess
-
-# Path to the binary for Atom's package manager, apm
-APM_PATH = atom.packages.getApmPath()
-# Path to the directory where Atom stores user-installed packages
-LOCAL_PKG_DIR_PATH = atom.packages.getPackageDirPaths()[0]
-# Path to the remote package list used for comparison when syncing
-REMOTE_PKG_LIST_PATH = fs.realpathSync(
-  path.join(atom.getConfigDirPath(), 'packages.txt'))
-# Limit the rate of sync pushes to one second
-PKG_SYNC_DELAY = 1000
 
 # Activates Python virtualenv for this project directory if it exists
 activateVirtualenv = ->

process.env.PYTHONIOENCODING = 'utf_8'
# Prevent Python from generating bytecode (.pyc, .pyo) files
process.env.PYTHONDONTWRITEBYTECODE = '1'
# Pull package list from remote; install missing packages and uninstall
# extraneous packages
pullPkgList(-> initializePackageSync())

        console.log("Activated virtualenv at #{virtualenv}")
    )

# Explicitly define PATH and detect project virtualenvs
process.env.PATH = '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
if process.env.VIRTUAL_ENV_NAME
