I'm wondering if I must save a file to memory before opening it. By
opening I mean displaying it to the user.
I have a BLOB field in a db and I have managed to read the blob into a
binary fileobject. I've also managed to write it to disk and then I
open it by doubleclicking on it. But I was wondering:
1. How to open the file directly from code (and not by double clicking):
I'm aware of os.startfile on Win by I'm on a Mac now, so I rather have
a cross-platform way of accomplishing this.
2. If there is any Python module that takes care of saving and
cleaning temp files in an OS transparent way?
Txs,
Miguel
________________________________________________________________________________
COFIDIS Maxicredito. Ate' €10.000 sem burocracias. Resposta on-line!
Clique aqui para saber mais http://www.iol.pt/correio/rodape.php?dst=0802273
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor