Returning the path of a file

Lyle Johnson ljohnson at resgen.com
Fri Jan 5 11:07:04 EST 2001


> 2) Is there a builtin or method to delete a file or do I have to
> execute an os process to do this?

Use the os.remove() function:

    import os

    os.remove("thefile");

Sorry I can't answer your first question ;)





More information about the Python-list mailing list