Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Execute fabric task from PyCharm

I'm developing Django project in PyCharm and everything works properly. I've install fabric to my virtual env, and add fabfile.py in to my project. In this file I placed one test task definition:

def hello():
    print("Hello fabric!")

After that I'm trying to execute this task directly from my PyCharm. Do you have any suggestions how can I do it?

like image 379
Grzegorz Avatar asked Sep 04 '13 21:09

Grzegorz


1 Answers

Add a "Python" run configuration with /path/to/your/env/bin/fab as the script and hello as the script parameters.

Set the working directory to the directory with the fabfile.

Example:

enter image description here

like image 97
Pavel Anossov Avatar answered Oct 10 '22 06:10

Pavel Anossov