monperrus / ExpandAnimations

LibreOffice/OpenOffice.org extension to expand animations before exporting to PDF. Looking for maintainers.
https://github.com/monperrus/ExpandAnimations
GNU Lesser General Public License v3.0
232 stars 31 forks source link

config.load_project() doesnt work as expected #25

Closed roynico closed 5 years ago

roynico commented 5 years ago

config.load_project() doesnt work as expected, or maybe I did not understand correctly. In my project I have a fabile.py with

from fabric2 import task, Connection
@task
def my_task(c):
    print(c.config)
    other_connection = Connection(host="my_host")
    print(other_connection.config)
    other_connection.config.load_project()
    print(other_connection.config)

In a config file fabric.json I have

{
    "key": "MY_VALUE"
}

Executing the command line

 python -m fabric2  my_task

shows that the config is read from fabric.json when invoking the task, and passed to c.config, but it is not read when calling other_connection.config.load_project(). Did I miss something ?

roynico commented 5 years ago

I'm sorry, I posted in the wrong project ! Iopend a new one in the ocrrect place: https://github.com/fabric/fabric/issues/1909 And I will close this one.