December 18th, 2012, 08: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, 09: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, 04: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: openSUSE 13.2 (home desktop, home laptop, work desktop), Debian GNU/Linux 7.7.0 (server), OpenELEC 5.0 (HTPC), Android 4.2.1 (tablet)