errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.12k stars 614 forks source link

`errbot --init` is failure failed when passed relative path as bot directory #1510

Closed attakei closed 3 years ago

attakei commented 3 years ago

In order to let us help you better, please fill out the following fields as best you can:

I am...

I am running...

Issue description

If I pass sub directory when run errbot --init, command does not complete correctly and example plugin is not created.

Steps to reproduce

  1. Create sub directory in current working directory(anywhere).
  2. Run errbot --init passing sub directory as relative path.

Example:

$ mkdir errbot-env
$ errbot --init errbot-env 
The initialization of your errbot directory failed: [Errno 2] No such file or directory: 'errbot-env/errbot-env/plugins/err-example'.

Patterns of reproduce:

Additional info

I will create PR to fix it.

sijis commented 3 years ago

PR merged.

sijis commented 3 years ago

Thank you for your contribution.