unable to import os
kn0805 at hotmail.com
Tue Oct 11 21:34:54 CEST 2005
I had the following code run with Python for Delphi. It works.
dirlist = nt.listdir(CPath)
listsize = len(dirlist)
if listsize > 2:
file = dirlist
nt.remove(CPath + dirlist)
PyLog(file + " in C:\logs has been deleted.")
if listsize == 2:
When I added the line "mtime = nt.stat(CPath+file)", it failed.
Do you have any idea or suggestion?
> It works fine independently, but still not work when run with Python
> for Delphi.
More information about the Python-list