Category : batch-file

This is a frequent question, but reading the other threads did not solve the problem for me. I provide the full paths to make sure I have not made any path formulation errors. import subprocess # create batch script myBat = open(r’.Test.bat’,’w+’) # create file with writing access myBat.write(”’echo hello pause”’) # write commands to ..

Read more

Been looking around and can’t seem to find a solution for this. I’m working through the course for Automate the boring stuff. I’m trying to run this bat file which will run the .py file but I keep getting this error message C:UserswhhAppDataLocalProgramsPythonPython310python.exe: can’t find ‘__main__’ module in ‘C:UserswhhMyPythonScripts’ I don’t exactly understand why this ..

Read more

I have two machines that need to run a single script as follows: cd C:my_project git pull set ENV=prod set USERNAME=me poetry config virtualenvs.create false poetry install poetry run python -m my_module Here are the version of both machines: Machine 1 >cmd /version Microsoft Windows [version 10.0.19042.1348] (c) Microsoft Corporation. Tous droits réservés. Machine 2 ..

Read more