[okl4-developer] OKL4 2.1: naming the build directory after the machine
Frank Kaiser
frank.kaiser at opensynergy.com
Tue Jul 15 18:36:41 EST 2008
Hi, Geoffrey
Many thanks for the hint. I should have recognized that simple quotation
(as I attempted) did not work because bash removes quotes on command
line processing. Another option to prevent quote removal is
tools/build.py project=iguana machine=gunstix
'build_dir="gumstix"'
Anyway, the main point here is way how PYTHON treats names, that
parameters are not automatically string literals.
Regards
Frank
> -----Original Message-----
> From: Geoffrey Lee [mailto:glee at ok-labs.com]
> Sent: Monday, July 14, 2008 5:45 PM
> To: Frank Kaiser
> Cc: developer at okl4.org
> Subject: Re: [okl4-developer] OKL4 2.1: naming the build directory
> afterthemachine
>
> On Mon, Jul 14, 2008 at 05:39:19PM +0200, Frank Kaiser wrote:
>
>
> Hi Frank
>
> In the 2.1 release you can use build_dir=\"gumstix\" when building
> for gumstix, for example. This is a known issue that will
> be addressed in a future release.
>
> -gl
>
> > Hello
> >
> >
> >
> > I think I've found a solution for my name clash problem. There is a
way
> > to check what the dictionary of command line parameters returns.
Classes
> > and some other types have the builtin attribute '__name__' to return
the
> > object's name as a string:
> >
> > self.build_dir = handle_arg("BUILD_DIR", "#build")
> >
> > if hasattr(self.build_dir, "__name__"):
> >
> > self.build_dir = self.build_dir.__name__
> >
> > This works for all 3 cases: naming the directory after the machine,
> > using another name, or not using the BUILD_DIR parameter.
> >
> > Maybe there are other ways to fix the problem: proposal are welcome.
> >
> > Regards
> > Frank
More information about the Developer
mailing list