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


Groups > comp.lang.python > #19358

Re: windows and home path

Date 2012-01-24 16:36 +0000
From Andrea Crotti <andrea.crotti.0@gmail.com>
Subject Re: windows and home path
References <4F1EC695.9000909@gmail.com> <CADwdpybW4rXDeT74r_WJNZ13WaTJiaNR7LD9eL3PFZgr7cW30w@mail.gmail.com> <4F1ED7DF.1080406@gmail.com> <CADwdpyYdFw2dUnN-8y_ODXYKJpbLnsiFi1UNqjEZ0M2z+0FVDw@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.5038.1327422990.27778.python-list@python.org> (permalink)

Show all headers | View raw


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 :(?

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web