Installation of missing libraries
Do you have a link? I am not aware that there is a central place to share scripts
Some snippets that are interesting :) Script that lists all the library dependencies: proj = projects.open(projectPath) objects = proj.get_children(recursive=True) for candidate in objects: if candidate.is_libman: for libref in iter(candidate): if libref.is_placeholder: if libref.effective_resolution is not None: libInfo = str(libref.effective_resolution) libMissing = False elif libref.default_resolution is not None: libInfo = str(libref.default_resolution) libMissing = True elif libref.is_managed:...
I solved the issue by creating 3 scripts: 1. script that lists all library dependencies 2. script in Python 3 that downloads the missing libraries 3. script that install the missing libraries
Good advice as workaround but I am searching for an answer to my scripting problem.
Good advice as workaround but I am searching for an answer to my question.
I have been trying to automatically resolve missing libraries on our build PC. First I searched the forum and found some old topics that are relevant to automate CoDeSys prompts: - https://forge.codesys.com/forge/talk/Engineering/thread/cb4c263657/ - https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/ The following is now implemented as Python script that runs in CoDeSys V3.5 SP16: system.prompt_handling |= PromptHandling.LogMessageKeys system.prompt_handling &= ~PromptHandling.ForwardSimplePrompts...
I have been trying to automatically resolve missing libraries on our build PC. First I searched the forum and found some old topics that are relevant to automate CoDeSys prompts: - https://forge.codesys.com/forge/talk/Engineering/thread/cb4c263657/ - https://forge.codesys.com/forge/talk/Engineering/thread/bf6c8291a5/ The following is now implemented as Python script that runs in CoDeSys V3.5 SP16: system.prompt_handling |= PromptHandling.LogMessageKeys system.prompt_handling &= ~PromptHandling.ForwardSimplePrompts...