]> gitweb.factorcode.org Git - factor.git/commitdiff
python: Fix like three thinko bugs but it works now.
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Feb 2018 22:32:25 +0000 (16:32 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Feb 2018 22:32:25 +0000 (16:32 -0600)
extra/python/python.factor

index 6afacde05bba7f66352bab0e90fcfda025981e13..12e92a8c790f32b6f231b212398fa1a101d9d53b 100644 (file)
@@ -117,7 +117,7 @@ ERROR: missing-type type ;
     '[ <py-cfunction> @ ] with-callback ; inline
 
 : python-dll-loaded? ( -- ? )
-    "PyIsInitialized" "python2.7" library-dll dlsym? ;
+    "Py_IsInitialized" "python" dlsym? ;
 
 [ python-dll-loaded? [ py-initialize ] when ] "python" add-startup-hook
 [ python-dll-loaded? [ py-finalize ] when ] "python" add-shutdown-hook