Auto execute python in USB flash disk

kyosohma at kyosohma at
Tue Mar 27 19:25:09 CEST 2007

On Mar 27, 11:56 am, "Brian Erhard" <theema... at> wrote:
> I am still fairly new to python and wanted to attempt a home made
> password protection program.  There are files that I carry on a USB
> flash drive that I would like to password protect.  Essentially, I
> would like to password protect an entire directory of files.  Is there
> a way to auto execute a python script after a user double clicks to
> open a folder on the USB drive? How can you capture that double click
> event on a specific folder?
> Thanks.

I've never done this before, but it sounds cool. You would need to
create some kind of python file object to do this properly. So instead
of actually clicking a folder, you would click a pickled file or
something. I found some cool info about encrypting files here:

There's also a python cryptography kit:

Finally, I found a fellow python programmer that wrote his own:

There's also PortablePython...



More information about the Python-list mailing list