Files
gnatcoll-bindings/python3/tests/support/test_common.adb
Nicolas Roche 78fae807b1 Update testsuite
* Adjust test layout
* Add a test for T701-014
* Add documentation on existing tests

Change-Id: Iafaf003ceec6af038c76bc6899b169865e3294be
2020-07-03 06:31:52 -07:00

18 lines
411 B
Ada

with Ada.Environment_Variables;
with GNATCOLL.Python.Lifecycle; use GNATCOLL.Python.Lifecycle;
package body Test_Common is
package Env renames Ada.Environment_Variables;
function Python_Home return String is
begin
return Env.Value ("ADA_PYTHON_HOME");
end Python_Home;
procedure Set_Python_Home is
begin
Py_SetPythonHome (Python_Home);
end Set_Python_Home;
end Test_Common;