0 votes
915 views
Hi there,

I am trying to create an application that runs openLCA  "headless" through the olca-ipc Python API. I managed to host an IPC server from the Python console using Popen, which makes it possible to run LCA calculations from Python without having to open the openLCA Java application. The only step that still requires users to run openLCA is the moment the database is restored from a .zolca file.

Is it possible to restore/import a database from the API? I found the io modules on Github, but don't see yet how they could be run from olca-ipc.

Related to this: currently, openLCA puts restored databases in the home directory. Is it possible to control this behaviour as well, and set the folder in which the databases restored?

Thanks in advance!
in openLCA by (130 points)

1 Answer

+1 vote
by (2.5k points)
As an answer to your last question, see this link for how to adjust where databases get stored:

https://www.openlca.org/wp-content/uploads/2015/11/150206_Changing-the-location-of-databases-for-openLCA.pdf
by (100 points)
did you find any solution for your first problem?
...