Batch file infinite loop with pyuic5

0

I don't get why first script infinite loops while second doesn't.

Googled for this problem, but since I'm nowhere near to guess what's cause of this, I'm asking here what's wrong with first script.

Got results from PyCharm Terminal, but results are still same on cmd.

1st

cd %~dp0
for %%f in (./*.ui) do pyuic5 ./%%f -o ./%%~nf.py
Z:\github\python-macro-practice\Qt_UI>cd Z:\github\python-macro-practice\Qt_UI\ 

Z:\github\python-macro-practice\Qt_UI>for %f in (./*.ui) do pyuic5 ./%f -o ./%~nf.py 

Z:\github\python-macro-practice\Qt_UI>pyuic5 ./methodItem.ui -o ./methodItem.py 

Z:\github\python-macro-practice\Qt_UI>cd Z:\github\python-macro-practice\Qt_UI\ 

Z:\github\python-macro-practice\Qt_UI>for %f in (./*.ui) do pyuic5 ./%f -o ./%~nf.py

..(Infinite Loops)..

Process finished with exit code -1073741819 (0xC0000005)

2nd

cd %~dp0
cd ..
for %%f in (./Qt_UI/*.ui) do pyuic5 ./Qt_UI/%%f -o ./Qt_UI/%%~nf.py
Z:\github\python-macro-practice\Qt_UI>cd Z:\github\python-macro-practice\Qt_UI\ 

Z:\github\python-macro-practice\Qt_UI>cd .. 

Z:\github\python-macro-practice>for %f in (./Qt_UI/*.ui) do pyuic5 ./Qt_UI/%f -o ./Qt_UI/%~nf.py 

Z:\github\python-macro-practice>pyuic5 ./Qt_UI/methodItem.ui -o ./Qt_UI/methodItem.py 

Z:\github\python-macro-practice>pyuic5 ./Qt_UI/pymacro.ui -o ./Qt_UI/pymacro.py 

Process finished with exit code 0
batch-file
asked on Stack Overflow Mar 15, 2020 by 백준영 • edited Mar 15, 2020 by Compo

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0