]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/python/python.factor
core/basis/extra: using STARTUP-HOOK: and SHUTDOWN-HOOK:
[factor.git] / extra / python / python.factor
index 0a20ed6d4e3e5ba51ce582f4da1163d225b8f286..fa6f41db96f808e9b1fb4bb0d6805912ab0ecce2 100644 (file)
@@ -115,5 +115,5 @@ ERROR: missing-type type ;
 : python-dll-loaded? ( -- ? )
     "Py_IsInitialized" "python" dlsym? ;
 
-[ python-dll-loaded? [ py-initialize ] when ] "python" add-startup-hook
-[ python-dll-loaded? [ py-finalize ] when ] "python" add-shutdown-hook
+STARTUP-HOOK: [ python-dll-loaded? [ py-initialize ] when ]
+SHUTDOWN-HOOK: [ python-dll-loaded? [ py-finalize ] when ]