Le 2017-12-21 à 09:17, Roberto De Ioris a écrit :
You can build libuwsgi.so by using this profile https://github.com/unbit/uwsgi/blob/master/buildconf/lib.ini
Thats very cool. Ok, fine. Here's what I want to do: In file libuwsgictl.pyx: import libuwsgi # Import uWSGI shared library import os # define master FIFO commands to dispatch in this class class Command(object): pass class Start(Command): pass Then I could import the libuwsgi.so module from the uwsgictl script: import libuwsgi command = libuwsgi.Start(workers=2) command.run() # Run/dispatch the specified command What do you think? Etienne -- Etienne Robillard [email protected] https://www.isotopesoftware.ca/ _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
