difference between stub file and source file in scriptengine

pierre
7 days ago
4 days ago
  • pierre - 7 days ago

    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 - 4 days ago

    same situation for DeviceID.

    In the stubfile this is Deviceid

     
  • pierre - 4 days ago
     

    Last edit: pierre 4 days ago

Log in to post a comment.