18F / an_introduction_to_python

An introduction to Python - https://www.digitalgov.gov/event/online-intro-to-python/
10 stars 8 forks source link

What is your home directory on PythonAnywhere? #4

Closed alexbijak closed 7 years ago

alexbijak commented 7 years ago

I am a bit stuck on using PythonAnywhere. When I type in import os and print(os.getcwd()) to figure out my current working directory, the line “/home/alexbijak” is returned. I’m confused as to where “alexbijak” is exactly. Is this just on the PythonAnywhere server? I should not be looking for anything on my local drive called “alexbijak”, right?

EricSchles commented 7 years ago

Sorry this is a little stale. That's correct, /home/alexbijak is in PythonAnywhere. PythonAnywhere does not have access to your local environment.