Network Path and Variables in Python
<p>I am new to Python, and thus I am just starting on the basics of the language.  I have a question on how to copy a file from a network share to local disk with variables.  If I use the following line:</p>

<pre><code>shutil.copyfile(r"\\mynetworkshare\myfile.txt","C:\TEMP\myfile.txt")
</code></pre>

<p>everything works fine.  However, what I can't seem to figure out is how to use a variable with the network share path (because I need the 'r' (relative?) flag.  The end result I would imagine would be something like:</p>

<pre><code>source_path = "\\mynetworkshare"
dest_path = "C:\TEMP"
file_name = "\\myfile.txt"

shutil.copyfile(r source_path + file_name,dest_path + file_name)
</code></pre>

<p>But I have had no luck with different variations of this approach.  Thanks for your help!</p>
