Thanks for the basename suggestion. That almost works. I'm running into a
problem with some of the directory names when they include \800x\ see below.
―-
import sys, os, string
teststring = 'C:\shoreline\dvd\prep area
I need just the file name from a string containing the path to a file. The
name of the file starts with zeros. This is problematic because the lstrip
function strips them leaving this as the result:
6128.jpg
How do I strip the path without losing the leading zeros in the file name?
―
hanks
Randy Kreuziger
(360) 902-2495 Voice
(360) 902-2940 Fax
ArcSDE Administrator
Wash Dept of Fish and Wildlife
--
http://mail.python.org/mailman/listinfo/python-list
Can stdout and stderr be redirected to the same file? I would like to redirect both to the same file but I'm not sure how to do it. Currenting I'm redirectiong stdout using the following code:
saveout = sys.stdout fsock = open('runtime.log', 'w') sys.stdout = fsock
The problem is that