Skip to content

Commit

Permalink
Load core scripts from module regardless of current directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
assaf committed Oct 26, 2011
1 parent 3d12360 commit 0d6a619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/hubot
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ else
robot = new Hubot scriptsPath, Options.name
robot.enableSlash = Options.enableSlash

scriptsPath = Path.resolve "src", "hubot", "scripts"
scriptsPath = Path.resolve __dirname, "..", "src", "hubot", "scripts"
console.log "Loading hubot core scripts for relative scripts at #{scriptsPath}"
robot.load scriptsPath

Expand Down

0 comments on commit 0d6a619

Please sign in to comment.