Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19358
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <andrea.crotti.0@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.064 |
| X-Spam-Evidence | '*H*': 0.87; '*S*': 0.00; 'subject:windows': 0.09; 'workstation': 0.09; 'cc:addr:python-list': 0.15; 'received:74.125.82.44': 0.15; 'received:mail-ww0-f44.google.com': 0.15; '"right"': 0.16; 'different,': 0.16; 'wrote:': 0.16; 'thanks,': 0.18; 'cc:no real name:2**0': 0.21; 'header:In-Reply- To:1': 0.22; 'helpful': 0.23; 'exist,': 0.23; 'though.': 0.23; 'command': 0.24; 'candidates': 0.24; 'cc:2**0': 0.25; 'code': 0.25; 'somewhere': 0.25; 'windows': 0.26; 'pm,': 0.26; "i'm": 0.27; 'skip:" 30': 0.28; 'bit': 0.28; 'cc:addr:python.org': 0.29; 'seem': 0.29; 'environment': 0.30; 'actually': 0.32; "isn't": 0.32; 'message-id:@gmail.com': 0.33; 'header:User-Agent:1': 0.33; 'there': 0.33; 'received:74.125.82': 0.34; 'probably': 0.35; 'skip:" 10': 0.36; 'run': 0.37; 'but': 0.37; 'received:74.125': 0.37; 'received:google.com': 0.37; 'could': 0.37; 'should': 0.38; 'why': 0.39; "what's": 0.39; 'subject:: ': 0.39; 'might': 0.40; 'your': 0.61; 'target': 0.62; 'here.': 0.64; 'here': 0.64; 'home': 0.65; 'course.': 0.66; 'hill': 0.68; 'subject:home': 0.73; 'machine,': 0.84; 'url:archives': 0.91; 'pc?': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=k2SI+Yvxc8CbUZIJYw+UoUQqj1iMKPNrdxm7jdf4Ogw=; b=SeZqh/hjl0iNBBBtJ5iTHoWHebXTowcExN3gXyaNMGVcnNJNgpdVSg0tg4HyvuZUZe Ho0vPRPGV+JXYlNxIN45jkDTyOMlWbLGzwDcoX8fxB90nvJX4ClWa1ldrr8FGB88Af13 r0G6NfwJUcDQ/kwHyQioB+srJbA76Rst4GIlY= |
| Date | Tue, 24 Jan 2012 16:36:27 +0000 |
| From | Andrea Crotti <andrea.crotti.0@gmail.com> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1 |
| MIME-Version | 1.0 |
| To | Jerry Hill <malaclypse2@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> |
| In-Reply-To | <CADwdpyYdFw2dUnN-8y_ODXYKJpbLnsiFi1UNqjEZ0M2z+0FVDw@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5038.1327422990.27778.python-list@python.org> (permalink) |
| Lines | 31 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1327422990 news.xs4all.nl 6965 [2001:888:2000:d::a6]:49618 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:19358 |
Show key headers only | 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
Re: windows and home path Andrea Crotti <andrea.crotti.0@gmail.com> - 2012-01-24 16:36 +0000
csiph-web