Mar-16-2018, 07:49 PM
I run Linux natively, I ran your code via python2 game.py and discovered that your error is on line 17. On Linux there is no such thing as "d:\test\sub_1" even if I were to create that file/folder structure. We dont have drive letters, and our path names are delimited by "/" forwards slash. if you change it to os.chdir("/") it seems to work, when I pressed Y it would cycle through the folders/files, when it got to a folder I used B to get into it. Once I did this, I was nolonger able to list my files however so your code prob has a bug that I don't see.
Here is how our filesystem works:
1) There are no drive letters
2) The various hard disks installed under the system are mounted usualy to /mnt/something
3) We dont use backslash
4) / on Linux is simular to C:/ on windows
Here is how our filesystem works:
1) There are no drive letters
2) The various hard disks installed under the system are mounted usualy to /mnt/something
3) We dont use backslash
4) / on Linux is simular to C:/ on windows