Pre-Build batch commands
Posted: Thu Feb 09, 2023 5:36 am
Hello
I am trying to run a python script when generating a target, so I thought to use the "Pre-Build Event" to run a batch file.
I inserted this pre-build command:
C:/Users/[USER]/Documents/test_py0.bat
This is the batch file called "test_py.bat" that is called:
@echo TEST FLARE pre Build Batch
@echo off
python C:/Users/[USER]/Documents\flare_tgt_test_1.py
pause
But unfortunately, nothing happens before building the target. According to the build log, the pre build command is read and processed. But I expect that a command prompt window opens and shows the echo-text at least.
However, the "mkdir" command that is shown in the online help is executed when putting it into a batch file. So it seems there are some commands that are executed and some are not.
Tech support could not help me.
Does anybody have experience with this and can show me a way how to execute python scripts from Flare?
Thank you very much.
I am trying to run a python script when generating a target, so I thought to use the "Pre-Build Event" to run a batch file.
I inserted this pre-build command:
C:/Users/[USER]/Documents/test_py0.bat
This is the batch file called "test_py.bat" that is called:
@echo TEST FLARE pre Build Batch
@echo off
python C:/Users/[USER]/Documents\flare_tgt_test_1.py
pause
But unfortunately, nothing happens before building the target. According to the build log, the pre build command is read and processed. But I expect that a command prompt window opens and shows the echo-text at least.
However, the "mkdir" command that is shown in the online help is executed when putting it into a batch file. So it seems there are some commands that are executed and some are not.
Tech support could not help me.
Does anybody have experience with this and can show me a way how to execute python scripts from Flare?
Thank you very much.