elyxer-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [eLyXer-users] Re: Advice for another LyX-oriented project


From: Jack Desert
Subject: Re: [eLyXer-users] Re: Advice for another LyX-oriented project
Date: Tue, 13 Apr 2010 13:55:16 -0500

El Sun, 11 Apr 2010 13:48:33 +0200
Alex Fernandez <address@hidden> escribió:
> Hi Jack,
> 
> Another pending mail to the list!
> 
> On Thu, Apr 1, 2010 at 9:29 PM, Jack Desert <address@hidden> wrote:
> > I have a patch for coalesce.py and io/fileline.py that allows inter-package 
> > imports to be made using relative references. I have included two versions 
> > of this patch-- the first allows only relative references. The second (has 
> > a "2" suffix) first tries relative references and if that fails, goes with 
> > absolute references.
> 
> Let's see if i understood correctly: if you are in gen/layout, instead
> of having to
>   from gen.container import *
> you want to do:
>   from container import *
> Is that right? 

Yes, that's exactly right. 

>  I hope you don't mind that I redid your patch;

Your update works fine, and it's cleaner too. So it made it easier for me to 
implement the next piece of coalesce.py that I've been working on. That is, to 
allow imports such as:
  from socket import gaierror

I have attached a patch that allows your latest patch to work with the above. 
The only side effect for me is that the following messages show up when I run 
coalesce.py:

  * Missing file socket.py
  * Missing file wordpresslib.py
  * Missing file exceptions.py
  * Missing file socket.py

Corresponding to each of the imports I have made:

  from socket import gaierror
  from wordpresslib import WordPressException
  from exceptions import IndexError

Other than that it works well. 

-Jack 


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jack Desert     --    Writer, Entrepeneur
Author and Spokesman: www.LetsEATalready.com
Software Developer:   http://GrooveTask.org
Email: address@hidden
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Attachment: coalesce_patch3.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]