From 24e0d8fc031171e9014b236b3d2be69e4253a549 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki & Nathan Sobo Date: Wed, 14 Aug 2013 17:41:32 -0700 Subject: [PATCH] Add ~/.atom/dev/packages to package load path in dev mode --- src/app/config.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/config.coffee b/src/app/config.coffee index 65683d9e1..7f6091782 100644 --- a/src/app/config.coffee +++ b/src/app/config.coffee @@ -13,6 +13,8 @@ bundledThemesDirPath = path.join(resourcePath, "themes") userThemesDirPath = path.join(configDirPath, "themes") userPackagesDirPath = path.join(configDirPath, "packages") userStoragePath = path.join(configDirPath, ".storage") +packageDirPaths = [userPackagesDirPath] +packageDirPaths.unshift(path.join(configDirPath, "dev", "packages")) if atom.getLoadSettings().devMode # Public: Handles all of Atom's configuration details. # @@ -24,7 +26,7 @@ class Config themeDirPaths: [userThemesDirPath, bundledThemesDirPath] bundledPackageDirPaths: [nodeModulesDirPath] nodeModulesDirPath: nodeModulesDirPath - packageDirPaths: [userPackagesDirPath] + packageDirPaths: packageDirPaths userPackagesDirPath: userPackagesDirPath userStoragePath: userStoragePath lessSearchPaths: [path.join(resourcePath, 'static'), path.join(resourcePath, 'vendor')]