Really, really annoying problem
Steve Juranich
sjuranic at condor.ee.washington.edu
Wed Sep 20 17:12:15 EDT 2000
On Wed, 20 Sep 2000, it was written:
> The function of this code is to append a filename to the directory the
> module is in, I'll add more functionality later, but for the minute this
> will do.
>
Try this instead...
import os
def addroot(text):
return os.getcwd() + os.sep + text
That should do it.
----------------------------------------------------------------------
Stephen W. Juranich sjuranic at ee.washington.edu
Electrical Engineering http://students.washington.edu/sjuranic
University of Washington http://rcs.ee.washington.edu/ssli
More information about the Python-list
mailing list