Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Kars Jansens
Kars Jansens
5,348 Points

Can not acces file rpg in workspace console.

I'm learning Python and I can't acces the rpg file only. https://gyazo.com/627c5cb29af4924fda78f29dc86e30fe for example I can do python rpg/play.py but when I just want to do something in the console like importing something, I get an error. https://gyazo.com/627c5cb29af4924fda78f29dc86e30fe I tried from rpg/thieves import Thief and from thieves import Thief The blue 'thing' is in my console is treehouse:~/workspace$ but the teacher has treehouse:~/workspace/rpg$. I think that that's the problem.

1 Answer

To switch to the rpg directory in the console type:

cd rpg