Re: [sigal] Re: Call Sigal from Python
- 2015-01-08 @ 22:25
Le 07/01 10:50, David Ketcheson à écrit:
> Resending since the machine says my message was dropped.
> On Wed, Jan 7, 2015 at 9:07 AM, David Ketcheson
> Thanks for developing the very nice tool that is Sigal!
> I'd like to call sigal from another Python package. Of course I can do
it via a system call to the command line interface, but I'd prefer to
avoid that. I tried
> import sigal
> with various attempts at what should go in args, but to no avail. Is it
possible to call Sigal from Python?
> David Ketcheson
Sure it is possible. You can take example on the 'sigal build' command
You need to use 'read_settings' even with no filename, to load the
default settings. Then you can modify the settings if you want to, and
run sigal with:
gal = Gallery(settings)