B4J Question pybridge and package standalone

Schakalaka

Active Member
Licensed User
Longtime User
Hello,
after create a stand alone package, how and where should i put the python folder with installed libs?
How to config the path on code?
Other solutions? I prefer not install python on target machine.


B4X:
    Py.Initialize(Me, "Py")
    Dim opt As PyOptions
    opt.Initialize
    Dim opt As PyOptions = Py.CreateOptions("D:\python\python.exe")
    Log(opt)
    Py.Start(opt)
    
    Wait For Py_Connected(Success As Boolean)
    If Success Then
        Log("🚀 PyBridge avviato.")
    Else
        Log("❌ Errore avvio Python.")
        Return
    End If

or

B4X:
    Dim localPythonDir As String = File.Combine(File.DirApp, "python")
    Dim pyexe As String = File.Combine(localPythonDir, "python.exe")
    Log(pyexe)

or i move folder manually?

Thank
 

TILogistic

Expert
Licensed User
Longtime User
Sorry for the question, but I see I have the same question.
When you create the standalone package, are all the Python and third-party libraries you used in your project copied?

Because when I work directly with Python, I create my virtual environment and use PyInstaller to create my standalone application and it only adds the libraries that I have only used.
 
Last edited:
Upvote 0
Top