Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

01_hello/test.py does not work for Windows 10 Professional #18

Open
cm1776 opened this issue May 8, 2021 · 1 comment
Open

01_hello/test.py does not work for Windows 10 Professional #18

cm1776 opened this issue May 8, 2021 · 1 comment

Comments

@cm1776
Copy link

cm1776 commented May 8, 2021

The https://github.com/kyclark/tiny_python_projects/blob/master/01_hello/test.py script does not work on Windows 10 Professional.

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'
@cm1776
Copy link
Author

cm1776 commented 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant