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

Support Different OS File Separators #11

Closed
zachsez opened this issue Nov 8, 2020 · 1 comment
Closed

Support Different OS File Separators #11

zachsez opened this issue Nov 8, 2020 · 1 comment

Comments

@zachsez
Copy link

zachsez commented Nov 8, 2020

Use the os.sep constant instead of hard coded / to support Windows execution.
From: prg = ./hello.py
To: prg = '.' + os.sep + 'hello.py'

Example of Issue

OS Docs

@kyclark
Copy link
Owner

kyclark commented Mar 11, 2021

Great point. Really WSL is required to effectively use the material. I've tried to use a Windows command line, and it's just nearly impossible to get things to work correctly, e.g., the shebang. I hate having to prefix my commands with "python" (or "python.exe" or "python3" or whatever). I strongly encourage Windows users to install WSL and perhaps use VS Code (you can type "code prg.py" on the command line to open the editor with that program!).

@kyclark kyclark closed this as completed Mar 11, 2021
NowHappy pushed a commit to NowHappy/tiny_python_projects that referenced this issue Oct 13, 2021
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

2 participants