Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19358 > unrolled thread

Re: windows and home path

Started byAndrea Crotti <andrea.crotti.0@gmail.com>
First post2012-01-24 16:36 +0000
Last post2012-01-24 16:36 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: windows and home path Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-24 16:36 +0000

#19358 — Re: windows and home path

FromAndrea Crotti <andrea.crotti.0@gmail.com>
Date2012-01-24 16:36 +0000
SubjectRe: windows and home path
Message-ID<mailman.5038.1327422990.27778.python-list@python.org>
On 01/24/2012 04:21 PM, Jerry Hill wrote:
>
> windows might make the trick..
> It would not do the trick on my windows XP workstation here.  Your
> target environments may be different, of course.  From a general
> command prompt (cmd.exe) on my work machine, here's what you would
> have to work with:
>
> HOMEDRIVE=H:
> HOMEPATH=\
> HOMESHARE=\\server\share\userdirectory
> USERPROFILE=C:\Documents and Settings\username
>
> There is no HOME set here.  So, what's the right home directory for me
> on this PC?  Depending on your opinion of "right" you could end up
> with three different answers:  "H:\", "\\server\share\userdirectory",
> or "C:\Documents and Settings\username" all seem like valid candidates
> to me.  Just going by HOMEPATH isn't going to be helpful if I were to
> run your code though.
>

Ok thanks, my environment is a bit different, but I'm not sure about 
where this
thing should actually run...
So probably the only reliable choice is USERPROFILE?
 From here I don't find any other alternatives:
http://kennethhunt.com/archives/000933.html

I just would like to be able to write somewhere in a place that should 
always exist,
why Windows you're so annoying :(?

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web