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

Instruction to get $PATH environment variable result in syntax error #266

Open
ShrykeWindgrace opened this issue Oct 7, 2018 · 0 comments

Comments

@ShrykeWindgrace
Copy link

Hi,

Running the following command in my ST3 console (as shown in the documentation) gives the following output

>>> import os; print os.getenv('PATH')
  File "<string>", line 1
    import os; print os.getenv('PATH')
                      ^
SyntaxError: invalid syntax

If I run the command import os; print (os.getenv('PATH')), everything works fine. Python3 to the rescue!

On a side note, I have only python 3 on this machine.

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