 
 parseCommandLine = ->
   args = optimist(process.argv[1..]).argv
-  resourcePath = args['resource-path'] ? path.dirname(__dirname)
   executedFrom = args['executed-from']
+  devMode = args['dev']
   pathsToOpen = args._
+  resourcePath = if devMode then path.join(getHomeDir(), 'github/atom') else path.dirname(__dirname)
 
 bootstrapApplication = ->
   parseCommandLine()

    '',
  ]

  homeDir = process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']
  resourcePaths.push path.join(homeDir, '.atom', 'packages')

  resourcePaths = resourcePaths.map (relativeOrAbsolutePath) =>
    path.resolve resourcePath, relativeOrAbsolutePath

pathsToOpen = null
atomApplication = null


require('fs').writeFileSync('/Users/corey/Desktop/moo.txt', process.cwd())

getHomeDir = ->
  process.env[if process.platform is 'win32' then 'USERPROFILE' else 'HOME']

setupNodePath = ->
  resourcePaths = [
    'src/stdlib',
    'src/app',
