<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Get profile of project before starting python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4eb955c2b/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4eb955c2b/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/e4eb955c2b/</id><updated>2020-02-27T14:43:42.546000Z</updated><subtitle>Recent posts to Get profile of project before starting python script</subtitle><entry><title>Get profile of project before starting python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4eb955c2b/?limit=25#d670" rel="alternate"/><published>2020-02-27T14:43:42.546000Z</published><updated>2020-02-27T14:43:42.546000Z</updated><author><name>Anonymous</name><uri>https://forge.codesys.com/u/*anonymous/</uri></author><id>https://forge.codesys.com11c5adcb85d2a6531c3154b7e0f40620fca9be06</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; M.Schaber&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;pavo hat geschrieben:&lt;/strong&gt;&lt;br/&gt;
Is there any possibility to get/read the profile of a project before we open it with Python?&lt;br/&gt;
We have different projects made with different version of COEDSYS. For the start of a Python script we have to know the profile "--profile="CoDeSys V3.4 SP3 Patch 1" of the project. How can we read the profile of a saved project?&lt;br/&gt;
Thanks pavo&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Currently, there's no official way to access the profile information of a project without opening it.&lt;/p&gt;
&lt;p&gt;As we have backwards compatibility features (compiler version settings, storage format etc.), it should be possible to open and process older projects with newer versions.&lt;/p&gt;
&lt;p&gt;If you want to get into the deep waters of unsupported code (which might break with any future version of CODESYS), you could try to parse it out of the project. The project is basically a zip file, and the profile information is included there (in the files profile.auxiliary). In the header of the file, the profile name is also encoded (in UTF-16, AFAICS). So with some reverse engineering, you could write your own code to parse profile name out of the file header...&lt;/p&gt;
&lt;p&gt;HTH,&lt;br/&gt;
Markus&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Get profile of project before starting python script</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/e4eb955c2b/?limit=25#e81b" rel="alternate"/><published>2020-02-27T14:43:41.008000Z</published><updated>2020-02-27T14:43:41.008000Z</updated><author><name>pavo</name><uri>https://forge.codesys.com/u/pavo/</uri></author><id>https://forge.codesys.com138513a8e8e7b948e5f3944ce9f3b53b7780f77b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Is there any possibility to get/read the profile of a project before we open it with Python?&lt;br/&gt;
We have different projects made with different version of COEDSYS. For the start of a Python script we have to know the profile "--profile="CoDeSys V3.4 SP3 Patch 1" of the project. How can we read the profile of a saved project?&lt;br/&gt;
Thanks pavo&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>