Commit 2b59565c authored by yoogx's avatar yoogx

* Add library initialization function, required when importing

          a dynamic library in Python interpreter
parent 12b015cc
......@@ -145,4 +145,13 @@ package body Ocarina.Python_Cmd is
return Repo;
end Register_Scripts_And_Functions;
----------------
-- Initialize --
----------------
procedure Initialize is
begin
Repo := Register_Scripts_And_Functions;
end Initialize;
end Ocarina.Python_Cmd;
......@@ -10,4 +10,11 @@ package Ocarina.Python_Cmd is
-- Register the Python scripting language, and the functions we
-- export
procedure Initialize;
pragma Export (C, Initialize, "initocarina");
private
Repo : GNATCOLL.Scripts.Scripts_Repository;
end Ocarina.Python_Cmd;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment