Hi,

On Wed, 2008-03-19 at 11:19 +0000, Dr J A Gow wrote:
> On Mon, 2008-03-17 at 13:31 +0930, Iain Buchanan wrote:
> > Hi,
> > 
> > just looking through the sync-engine code to tweak the gentoo package,
> > and I came across this in config.py:

[snip]

> > so if config.xml doesn't exist in ~/.synce it is copied from
> > "self.sepath".  The only problem is self.sepath is set to
> > "/usr/lib/python2.5/site-packages" a few lines earlier, so the default
> > config.xml would have to be installed into
> > "/usr/lib/python2.5/site-packages/config/config.xml"
> > 
> 
> I can't speak for the packages, but the SVN version acquires the path
> from the following statement. The path is not harcoded:
> 
> # Now, get our current path (this may be useful)
> # Avoids messing about with having to pull a PREFIX from
> # an installer
>               
>       self.sepath = str(xml2util).split()[3][1:-2]
>       self.sepath = os.path.dirname(self.sepath)      
>       self.sepath = os.path.dirname(self.sepath)      

this is the same as my installed sync-engine.  If I put this line of
code after each of those lines:
                print "self.sepath = %s" % self.sepath
Then the output is:
self.sepath = /usr/lib/python2.5/site-packages/SyncEngine/xml2util.py
self.sepath = /usr/lib/python2.5/site-packages/SyncEngine
self.sepath = /usr/lib/python2.5/site-packages

> This acquires the SyncEngine root from the location of xml2util.py. This
> should be the root of the SyncEngine archive. The path to config.xml is
> then constructed.

On Wed, 2008-03-19 at 12:23 +0000, Dr J A Gow wrote: 
> Just an addendum to my previous message - this is actually correct in
> what it is doing. The sync-engine root is one level below
> 'SyncEngine' (check the tree out from SVN to see what I mean).

one level below?  Could you perhaps show me the output from your
sync-engine with the one-liner I added above?

thanks,
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

A man who persists in stalking game in a place where there is none may wait 
forever without finding any success.  Persistence in search is not enough.

  -- Zensunni Wisdom of the Wanderings


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel

Reply via email to