Filepath string manipulation help

mjakowlew mjakowlew at gmail.com
Thu Nov 3 12:04:30 EST 2005


 I got the "IE Fix" working, here's the code:

____________________________
path = r'c:\here\there\files\file.ext'

i=len(path)
j=0
size=len(path)

while i:
  i=i-1
  if path[i]== '\\':
    j=i+1
    break

filename = path[j:size]
print "FILENAME: %s" %(filename)
_______________________________

Most importantly this works on my Zope webserver.

Thanks again,
mjakowlew




More information about the Python-list mailing list