Commit 2b59565c authored by yoogx's avatar yoogx
Browse files

* 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
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");
Repo : GNATCOLL.Scripts.Scripts_Repository;
end Ocarina.Python_Cmd;
Supports Markdown
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