lib/chatterbot/config.rb
#
# if we are called by a bot, we want to use the directory of that
# script.  If we are called by chatterbot-register or another
# helper script, we want to use the current working directory   
#
if we are called by a bot, we want to use the directory of that
script.  If we are called by chatterbot-register or another
helper script, we want to use the current working directory
if we are called by a bot we want to use the directory of that script . If we are called by chatterbot - register or another helper script we want to use the current working directory
def working_dir
      if chatterbot_helper?
        Dir.getwd
      else
        File.dirname($0)
      end
    end
def working_dir if chatterbot_helper? Dir . getwd else File . dirname ( $0 ) end end
if we are called by a bot, we want to use the directory of that
script.
if we are called by a bot we want to use the directory of that script .
#Dir.pwd