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! While you're at it, check out some resources Treehouse students have shared here.

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

Python Python Testing First Steps With Testing Writing and Running Doctests

I lost dd_games.py. How do I get it back???

I completely screwed up dd_games.py via trying to correct inconsistent use of spaces and tab errors, so I deleted dd_games.py. This turned out to be a huge mistake as there appears to be no way to get it back.

I can go into different workspaces and it's still there, but then I can't do the cd dungeons thing because I'm in a some different workspace.

How can I make the workspace that contains dd_games.py like new again???

Just another attempt at making what the problem is clear:

The Python Testing file should look something like:


dice

.....dice.py


dungeon

.....pycache

.....dd_game.py


rps

.....game.py

.....moves.py


From that list, delete dd_game.py.

Now, after you've deleted it, how do you get it back?

1 Answer

I fixed it. In my previous attempts to fix it, I had created a bunch of other workspaces with the same name, but none of those would come up when I tried to launch the workspace associated with the module.

I went into the workspace thingy (above right from here; see the thing with the <> on it) and deleted all of those. Then I selected a new launch different workspace but with the same name as the one I wanted to fix.

I think I did some sort of renewal too, but now I've forgotten exactly what it was I did at that point. Crap!!!

Anyway, I got dd_game.py back.