Skip to content

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

Open
@cm1776

Description

@cm1776

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions