I have to search for a file with extension .txt, but the path is changing every day
<p>I have a problem with file management.
I have to search for a file with extension .txt, but the path is changing every day.</p>

<p>I have an another file which contain the actual path, I can store it in a string, but when I
give the searching algorithm the windows drop an error message.</p>

<p>Here my script: </p>

<pre><code>path= 'c:\..... this is the path what I get back from an another script'

os.chdir(path)
for files in os.listdir("."):``
    if files.endswith(".txt"):
        print files
</code></pre>

<p>Error message: WindowsError: [Error 3] The system cannot find the path specified: 'c:....'</p>
