Gentoo Archives: gentoo-dev

From: Paul Smith <pausmith@××××××××××××××.com>
To: david@×××××××××.com
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Creating multiple "installations" on the same host
Date: Wed, 24 Mar 2004 18:44:56
Message-Id: vpdr8yhqjd9a.fsf@lemming.engeast.baynetworks.com
In Reply to: Re: [gentoo-dev] Creating multiple "installations" on the same host by david@futuretel.com
1 %% david@×××××××××.com writes:
2
3 >> myworld=open("/var/cache/edb/world","w")
4 >>
5 >> No setting of ROOT can possibly cause this to open any file other than
6 >> "/var/cache/edb/world". I want it to access the file
7 >> "$ROOT/var/cache/edb/world" instead.
8
9 d> actually you are incorrect. It does reference
10 d> $ROOT/var/cache/edb/world just try it and see.
11
12 Is this really true? How is this done? I've just started learning
13 Python this week although I've been hacking C, Lisp, and Perl for many
14 years.
15
16 Is the open() builtin somehow overridden in Portage to automatically add
17 the root value?
18
19
20 Or, do you just mean that somewhere _else_ in the code it creates the
21 root+"/var/cache/edb/world" file? If so then I do know about that...
22
23 --
24 -------------------------------------------------------------------------------
25 Paul D. Smith <psmith@××××××××××××××.com> HASMAT--HA Software Mthds & Tools
26 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
27 -------------------------------------------------------------------------------
28 These are my opinions---Nortel Networks takes no responsibility for them.
29
30 --
31 gentoo-dev@g.o mailing list