<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Pre-build steps not executing in S32 Design Studio</title>
    <link>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1845449#M12145</link>
    <description>&lt;P&gt;I have a python script to aggregative GIT info like commit and branch name, in the root directory of my project.&lt;BR /&gt;I want the script to execute as a pre-build step.&lt;BR /&gt;&lt;BR /&gt;I go to Properties -&amp;gt; Settings -&amp;gt; Build Steps ... and enter the command to run the script with the `Release_FLASH` config"&lt;/P&gt;&lt;P&gt;cd.. python sample.py&lt;/P&gt;&lt;P&gt;However, the python script does not execute.&lt;BR /&gt;I tried creating a .bat file with the same execution instructions, but still no luck.&lt;/P&gt;&lt;P&gt;What am I missing here? Is there a flag I need to set somewhere?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 19:29:22 GMT</pubDate>
    <dc:creator>Farnam</dc:creator>
    <dc:date>2024-04-11T19:29:22Z</dc:date>
    <item>
      <title>Pre-build steps not executing</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1845449#M12145</link>
      <description>&lt;P&gt;I have a python script to aggregative GIT info like commit and branch name, in the root directory of my project.&lt;BR /&gt;I want the script to execute as a pre-build step.&lt;BR /&gt;&lt;BR /&gt;I go to Properties -&amp;gt; Settings -&amp;gt; Build Steps ... and enter the command to run the script with the `Release_FLASH` config"&lt;/P&gt;&lt;P&gt;cd.. python sample.py&lt;/P&gt;&lt;P&gt;However, the python script does not execute.&lt;BR /&gt;I tried creating a .bat file with the same execution instructions, but still no luck.&lt;/P&gt;&lt;P&gt;What am I missing here? Is there a flag I need to set somewhere?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 19:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1845449#M12145</guid>
      <dc:creator>Farnam</dc:creator>
      <dc:date>2024-04-11T19:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-build steps not executing</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1846267#M12148</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228438"&gt;@Farnam&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If the file (.py or .bat) is not included inside the project and by project properties, try with the whole path to the file so it can be recognized, as such:&lt;/P&gt;
&lt;P&gt;python "C:\User\user\Downloads\hello_world.py"&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_0-1712943405922.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273485i134CB9AF937E163F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_0-1712943405922.png" alt="Julin_AragnM_0-1712943405922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I did a simple test with a hello world and it printed before finishing building:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Julin_AragnM_1-1712943413548.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/273486i0A894EE79553C94A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Julin_AragnM_1-1712943413548.png" alt="Julin_AragnM_1-1712943413548.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If this still does not work, try to add&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;cmd.exe&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;in front of your command line, so it launches the windows shell/command prompt.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2024 17:39:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1846267#M12148</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-04-12T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-build steps not executing</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1849255#M12167</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/200831"&gt;@Julián_AragónM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;This may well have worked, so I'll mark it as the accepted answer.&lt;BR /&gt;However, I ended up doing the following work-around.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Go to&amp;nbsp;Properties&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;→&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Builders&lt;/LI&gt;&lt;LI&gt;Create a new builder, click "New..."&lt;/LI&gt;&lt;LI&gt;Double click program&lt;/LI&gt;&lt;LI&gt;Name the new builder&lt;/LI&gt;&lt;LI&gt;Enter the location of the script&lt;/LI&gt;&lt;LI&gt;Enter the working directory of the script&lt;/LI&gt;&lt;LI&gt;Under refresh&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Select "Refresh resources upon completion."&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Then select "The selected resource"&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Select "After a "Clean"" (Optional)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Select "During manual builds" (Optional)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Then click "OK"&lt;/LI&gt;&lt;LI&gt;Now click on the new builder and press the "Up" key until it is at the top of the list&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Wed, 17 Apr 2024 18:39:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1849255#M12167</guid>
      <dc:creator>Farnam</dc:creator>
      <dc:date>2024-04-17T18:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-build steps not executing</title>
      <link>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1849282#M12168</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/228438"&gt;@Farnam&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thank you for the workaround as well!&lt;/P&gt;
&lt;P&gt;Best regards,&lt;BR /&gt;Julián&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 20:15:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32-Design-Studio/Pre-build-steps-not-executing/m-p/1849282#M12168</guid>
      <dc:creator>Julián_AragónM</dc:creator>
      <dc:date>2024-04-17T20:15:24Z</dc:date>
    </item>
  </channel>
</rss>

