Didnt want to open a new topic only for one question. Is it possible to get project path and project name?
If the question is totally unrelated to the existing topic, you actually should
open a new topic. This will help other users to find your question if they have the same problem, and avoid disturbing the users which are only interested in this topic.
when i do
proj = projects.primary
can i somehow extract from "proj":
With the path property, you can extract the project path as a whole:
file_path = proj.path
This should give you "C:\Project\test\test123.project" in the above example.
Then you can use standard path manipulation functions from the python standard library
or the .NET framework
to split it into directory path and file name.
Check out the CODESYS store: http://store.codesys.com/CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions