difference between stub file and source file in scriptengine

pierre
2024-09-20
2024-09-23
  • pierre - 2024-09-20

    I included the stub files of scriptengine (codesys python api) in a directory scriptengine of a project.

    I tried to include librarymanager like that:

    from scriptengine import librarymanager

    visual studio code detected an error. It said librarmanager could not be found. Indeed in the stub file, this was library_manager.

    But if I change it in my code, the plugin doesn t work anymore.

    I found an easy solution to this problem. I ve just changed the copied stub files.(library_manager -> librarymanager)

    But I think it would be better if you update it yourself in the future.

     
  • pierre - 2024-09-23

    same situation for DeviceID.

    In the stubfile this is Deviceid

     
  • pierre - 2024-09-23
     

    Last edit: pierre 2024-09-23

Log in to post a comment.