
I am trying to ad a path to my PYTHONPATH var so it will grab a library
if you look at the output of sys.path you’ll notice that two paths are joined/concatenated.
- the simpleauth path
- and the appengine path
why does python concatenate the appengine path with the current path I’m in?
I’m trying to add appengine to the python path to a windows 8 machine and I’m about out of ideas.
I have a
-
.pth file in the “site-packages” folder with the wanted path to be added enclosed in quotes and forward slashes escaped
“C:\\Program Files (x86)\\Google\\google_appengine”
-
PYTHONPATH system variable with the wanted path to be added enclosed in quotes
“C:\Program Files (x86)\Google\google_appengine”
-
PYTHONPATH user variable same as system variable
I ended up deleting the two environment variables
restarted the machine
recreated the .pth file
added the path:
(WITH the ESCAPES for the forward slashes and WITHOUT any QUOTES)
even though the path has spaces in it, as long as the path is on it’s own line it is captured correctly, but adding the quotes somehow caused the sys.path creation to concatenate the value with the previous path value?? don’t know just that it did.
that fixed it.