Re: Problem with os.path

2005-12-16 Thread Scott David Daniels
Daya Kiran Sunkara wrote: > ... > path = 'E:\mktrisk\service\marketdata\da' You should use: path = r'E:\mktrisk\service\marketdata\da' if you want to use backslashes regularly (for regexps and paths). You do know you could also use: path = 'E:/mktrisk/service/marketdata/da' even on windows.

Re: Problem with os.path

2005-12-15 Thread Pelmen
sorry? if i'm wrong? but i'm think you have to use double slash, to prevent escape-interpreting as '\n' for example -- http://mail.python.org/mailman/listinfo/python-list

Problem with os.path

2005-12-15 Thread Daya Kiran Sunkara
Hi All, I have a program which fetches the list of files inside a directory. For fetching this list I am making use of the glob.glob method which takes path as a parameter. For building the path I am making use of os.path.join. My code looks somewhat like this: