Paul's Programming Notes
PostsRSSGithub

Prevent Character Escaping - Python

15 Mar 2013

http://stackoverflow.com/questions/2042342/network-path-and-variables-in-python

If you want to use network paths without adding extra slashes, you can use python’s raw string function.

Here’s an example of something you want to make a raw string:

source_path = r"\\mynetworkshare"
python

Related posts

  • Check If Time Is Between - Python 16 Mar 2013
  • Raspberry Pi Text To Speech IRC Service 27 Feb 2013
  • Something I Need To Drill Into My Brain - Python 24 Apr 2013
© 2026. All rights reserved.