December 18th, 2012, 07:42 PM
I'm not able to see the bigger picture here i think; but basically I have no idea why you would use os.path.join? why wouldnt you just use a string or string concatenation?
Simple answers please im very new coming from a soley vbs world
December 18th, 2012, 08:55 PM
The os module removes operating system dependencies.
os.path.sep on unix is '/' while on DOS is r'\'
os.path.join uses os.path.sep to build paths.
has same effect whether on DOS, unix, or other system.
Use os.path.join for portable programs.
[/code] are essential for python code and Makefiles!
December 19th, 2012, 03:11 AM
Wohoo! FINALLY I’ve been able to spot an error in b49P23TIvg’s postings!
Originally Posted by b49P23TIvg
Using raw strings most of the special handling of \ is removed but a raw string still cannot end in a single \.
SyntaxError: EOL while scanning string literal
Comments on this post
My armada: Debian GNU/Linux 8 (desktop, home laptop, work laptop), Raspbian GNU/Linux 8 (nameserver), Ubuntu 14.04.3 LTS (HTPC), PC-BSD 10.2 (testbed), Android 4.2.1 (tablet)