On 01/24/2012 04:43 PM, Chris Angelico wrote:
On Wed, Jan 25, 2012 at 3:36 AM, Andrea Crotti
wrote:
I just would like to be able to write somewhere in a place that should
always exist,
why Windows you're so annoying :(?
Can you use the current directory, and rely on the user running your
prog
On Wed, Jan 25, 2012 at 3:36 AM, Andrea Crotti
wrote:
> I just would like to be able to write somewhere in a place that should
> always exist,
> why Windows you're so annoying :(?
Can you use the current directory, and rely on the user running your
program from a viable default?
ChrisA
--
http:
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:
HOME
On 01/24/2012 04:09 PM, Jerry Hill wrote:
On Tue, Jan 24, 2012 at 11:05 AM, Jerry Hill wrote:
So, my guess is that emacs is mangling your HOME environment variable.
That appears to be confirmed by the emacs documentation here:
http://www.gnu.org/software/emacs/manual/html_node/emacs/General-V
On Tue, Jan 24, 2012 at 11:10 AM, Andrea Crotti
wrote:
> Ah yes thanks for the explanation, on Python 2.7 on Linux I don't see
> the same doc, it might have been updated later..
> Anyway I just want to make sure that I get always the same path,
> not depending on the program.
>
> From a first look
On 01/24/2012 04:09 PM, Jerry Hill wrote:
On Tue, Jan 24, 2012 at 11:05 AM, Jerry Hill wrote:
So, my guess is that emacs is mangling your HOME environment variable.
That appears to be confirmed by the emacs documentation here:
http://www.gnu.org/software/emacs/manual/html_node/emacs/General-V
On 01/24/2012 04:05 PM, Jerry Hill wrote:
The os.path.exanduser() docs (
http://docs.python.org/library/os.path.html#os.path.expanduser ) say
that "On Windows, HOME and USERPROFILE will be used if set, otherwise
a combination of HOMEPATH and HOMEDRIVE will be used. An initial ~user
is handled by
On Tue, Jan 24, 2012 at 11:05 AM, Jerry Hill wrote:
> So, my guess is that emacs is mangling your HOME environment variable.
> That appears to be confirmed by the emacs documentation here:
> http://www.gnu.org/software/emacs/manual/html_node/emacs/General-Variables.html#General-Variables
I know,
On Tue, Jan 24, 2012 at 9:56 AM, Andrea Crotti
wrote:
> Window never stops to surprise me, I've been banging my head since yesterday
> and only
> now I now what is the problem.
>
> So suppose I have something like
>
> from os import path
> print path.expanduser('~')
>
> If I run it from cmd.exe I
Window never stops to surprise me, I've been banging my head since
yesterday and only
now I now what is the problem.
So suppose I have something like
from os import path
print path.expanduser('~')
If I run it from cmd.exe I get /Users/user, doing the same in an emacs
eshell buffer I get
/Use
10 matches
Mail list logo