Remus Avram Posted September 16, 2016 Report Share Posted September 16, 2016 Hi all, is there any reason why the Python paths from environment are not appended to the compiled ftrack_connect_package (v0.5.0) when is launched? If I create a simple action which print the sys.path I get this: .../ftrack/3.3.31/connect/0.5.0/centos-6_x86-64/common.zip .../ftrack/3.3.31/connect/0.5.0/centos-6_x86-64/ftrack_connect_package .../ftrack/3.3.31/connect/0.5.0/centos-6_x86-64 .../ftrack/3.3.31/connect/0.5.0/centos-6_x86-64/ftrack_connect_package.zip .../ftrack/3.3.31/connect/0.5.0/centos-6_x86-64/library.zip .../ftrack/3.3.31/connect/0.5.0/centos-6_x86-64/common.zip/FTrackCore.egg Even the python build in modules are not there. For example 'HTMLParser'. Am I doing something wrong? Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted September 20, 2016 Report Share Posted September 20, 2016 Hi Remus, We're using a library called cx_Freeze to create the executable. As part of the build step it excludes modules that are not used by the application. This is all fine if you have a "static" application, but in our case where we load plugins into the application it becomes a limit. In the build step of ftrack-connect-package there are ways to force adding modules. We do this with e.g. the csv modules. Link to comment Share on other sites More sharing options...
Remus Avram Posted September 20, 2016 Author Report Share Posted September 20, 2016 Hi Mattias, thanks for the explanation. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.