You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
01_hello/test.py does not work for Windows 10 Professional #18
The problem is due to the following two lines of code in the script:
prg = './hello.py' # line 7
out = getoutput(f'python3 {prg}') # line 21
A solution to this problem is to change the two lines above as follows:
prg = '.\hello.py' # line 7: change './hello.py' to '.\hello.py' (or simply 'hello.py', removing the './' entirely)
out = getoutput(f'python {prg}') # line 21: change 'python3' to 'python'
You may want to advise Windows users to install 'make'. This can be done, for example, via chocolatey.org. GNU make 4.3 (https://community.chocolatey.org/packages/make) works on my Windows 10 Professional machine.
With the installation of 'make', they can now run 'make test' in 01_hello
Reacted by Antonio Stacy Foushee, nikunj and Jeff Kuo
Activity
cm1776 commentedon May 8, 2021
You may want to advise Windows users to install 'make'. This can be done, for example, via chocolatey.org. GNU make 4.3 (https://community.chocolatey.org/packages/make) works on my Windows 10 Professional machine.
With the installation of 'make', they can now run 'make test' in 01_hello