 # Attempts to load the user and dependency configuration files.
 #
 loadConfig = () ->
-  if existsFile.sync userPath
-    user = jsonfile.readFileSync userPath
+  if existsFile.sync USER_PATH
+    user = jsonfile.readFileSync USER_PATH
   else
-    log.error "Couldn't find your '#{userPath}' file to get your API key." \
+    log.error "Couldn't find your '#{USER_PATH}' file to get your API key." \
       + ' You should probably run \'picksel auth\' to set one up.'
     return false
-  if existsFile.sync configPath
-    config = jsonfile.readFileSync configPath
+  if existsFile.sync CONFIG_PATH
+    config = jsonfile.readFileSync CONFIG_PATH
   else
-    log.error "Couldn't find your '#{configPath}' file with all your" \
+    log.error "Couldn't find your '#{CONFIG_PATH}' file with all your" \
       + ' dependencies. You should probably run \'picksel init\' to set one' \
       + ' up.'
     return false

  config = newConfig
  persistConfig()
  
  log.info "New file created at '#{configPath}' for holding your" \
    + ' asset dependencies. Feel free to check this file in to source control.'
    
 

# Constants.
USER_PATH = './.pickselacc'
CONFIG_PATH = './picksel.json'


# Load core dependencies.
https = require 'https'
fs = require 'fs'
