This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.moore
Recipients BreamoreBoy, Emil.Styrke, christian.heimes, paul.moore, steve.dower, tim.golden, zach.ware
Date 2015-03-23.19:30:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1427139007.21.0.442097382846.issue16328@psf.upfronthosting.co.za>
In-reply-to
Content
I think the problem here is that as the OP mentioned, win_add2path.py doesn't add the directory if it doesn't exist, so if you run it immediately after install, it won't add the directories that don't exist yet. And because it's setting the registry entries to make the path changes persistent, you only run it once and don't rerun it after those directories are created. Although if you did, that would fix the problem...

Maybe win_add2path.py should add the directories even if they don't exist? It only means removing the isdir check from the line

    if path and path not in envpath and os.path.isdir(path):

I don't really have a feel for whether that would be a good idea. I guess the only harm would be a bit of clutter on %PATH%, and probably no-one cares about that...
History
Date User Action Args
2015-03-23 19:30:07paul.mooresetrecipients: + paul.moore, christian.heimes, tim.golden, BreamoreBoy, zach.ware, steve.dower, Emil.Styrke
2015-03-23 19:30:07paul.mooresetmessageid: <1427139007.21.0.442097382846.issue16328@psf.upfronthosting.co.za>
2015-03-23 19:30:07paul.moorelinkissue16328 messages
2015-03-23 19:30:07paul.moorecreate