[olpc-help] SD Card and Python

7150 linux.1 at litenverden.com
Fri Dec 28 10:56:23 EST 2007


7150 wrote:
> I am beginning to work with Python.
> 
> I want to place a project in a directory called pyProject on my SD card.
> 
> I know how to add a directory to the exiting path:
> 
>     import sys
>     sys.path.append("/x/pyProject")
> 
> I do not know how to specify the SD card and directory in the path
> statement.
> 
<snip>

I am answering my own post just to provide an update.

It is possible to add the SD card to the path. I was trying to add /mnt
(per the wiki). The card is actually /media. This naming variance is
related to build numbers.

However, I have learned from practice that I cannot place a permanent
directory on the SD card. The Journal application _appears_ to claim the
entire SD card. When I place a python modules directory there, it is
deleted on the next boot (maybe before).

I can create Python modules and put them in the path directories
provided in the default paths (sys.path). This is ok for me.

I do wonder about the limitation _apparently_ placed on SD card. If I
wanted to use it to store MP3s or pictures, I would have trouble. I am
assuming there is something I don't know, but it is not holding up my
Python play.

If anyone else knows how one can stake out some space on the SD card,
I'd like to know.

George

---
http://www.litenverden.org


More information about the community-support mailing list