Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #97 from danielbayley/master
Browse files Browse the repository at this point in the history
Use atom.configDirPath instead of ATOM_HOME
  • Loading branch information
cakecatz authored Mar 10, 2017
2 parents b0e3130 + fdcc191 commit 99cc7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/flex-tool-bar.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module.exports =
@configFilePath = atom.config.get 'flex-tool-bar.toolBarConfigurationFilePath'

# Default directory
@configFilePath = process.env.ATOM_HOME unless @configFilePath
@configFilePath = atom.configDirPath unless @configFilePath

# If configFilePath is a folder, check for `toolbar.(json|cson|json5|js|coffee)` file
unless fs.isFileSync(@configFilePath)
Expand All @@ -56,7 +56,7 @@ module.exports =
return true if @configFilePath

unless @configFilePath
@configFilePath = path.join process.env.ATOM_HOME, 'toolbar.cson'
@configFilePath = path.join atom.configDirPath, 'toolbar.cson'
defaultConfig = '''
# This file is used by Flex Tool Bar to create buttons on your Tool Bar.
# For more information how to use this package and create your own buttons,
Expand Down

0 comments on commit 99cc7d9

Please sign in to comment.