TimWhiting / dartpy

An experiment in embedding Python in Dart via dart ffi and the Python c-api
68 stars 10 forks source link

[Question] Loading android shared library #6

Open b14cknc0d3 opened 2 years ago

b14cknc0d3 commented 2 years ago

Due to this stackoverflow q/a , I think , I can also load lib from Termux and use in android.

TimWhiting commented 2 years ago

You are wanting to use this in plain dart on Android then? No flutter?

b14cknc0d3 commented 2 years ago

No, I just want to load python lib from termux for my flutter app. Eg. 1.install python on termux 2.import python lib from termux just like in Linux and Window 3.and use in flutter app with your package I think you understand that. As of now, I copy android python lib from assets but when I run python command it show "import error " because I think python library or path need to be set (You advise).

TimWhiting commented 2 years ago

Yes the PYTHONPATH needs to be set.