Closed Scinopode closed 1 year ago
OSError
When using ogs6py for automating project file configurations in a Python script, I encountered an OSError related to the XML include mechanism.
ogs6py
parent_dir/notebook.py
OGS
parent_dir/solution_path/template.prj
OGS(INPUT_FILE=f"{solution_path}/template.prj", PROJECT_FILE=f"{solution_path}/derived.prj")
template.prj
parent_dir/solution_path/qcurve.xml
<include file="qcurve.xml" />
The XML file should be included without any errors.
An OSError occurs:
OSError: Error reading file 'qcurve.xml': failed to load external entity "qcurve.xml"
parent_dir/qcurve.xml
Is there any specific path resolving behavior for included XML files when using ogs6py?
Title:
OSError
When Including XML File in Different SubdirectoryDescription:
When using
ogs6py
for automating project file configurations in a Python script, I encountered anOSError
related to the XML include mechanism.To Reproduce:
ogs6py
in a Python script (parent_dir/notebook.py
) to automate theOGS
project file configuration.parent_dir/solution_path/template.prj
template.prj
, include an XML file located in the same directory (parent_dir/solution_path/qcurve.xml
) using:Expected Behavior:
The XML file should be included without any errors.
Actual Behavior:
An
OSError
occurs:Additional Context:
parent_dir/qcurve.xml
).Is there any specific path resolving behavior for included XML files when using
ogs6py
?