unable to import os

ktxn1020 kn0805 at hotmail.com
Tue Oct 11 21:34:54 CEST 2005

I had the following code run with Python for Delphi. It works.

while IsCDriveNotEnoughSpace():
      dirlist = nt.listdir(CPath)
      listsize = len(dirlist)
      if listsize > 2:
         file = dirlist[0]
         nt.remove(CPath + dirlist[0])
         PyLog(file + " in C:\logs has been deleted.")
      if listsize == 2:

When I added the line "mtime = nt.stat(CPath+file)[8]", it failed.
Do you have any idea or suggestion?

ktxn1020 wrote:
> It works fine independently, but still not work when run with Python
> for Delphi.

More information about the Python-list mailing list