On Tue, 2008-03-25 at 18:23 +0100, Guido Diepen wrote:
> Hi,
> 
> >
> > For the base config, I installed config.xml in site-packages/SyncEngine,
> > dropped the third of the above lines so self.sepath refers to this dir,
> > and further on changed config/config.xml to just config.xml. I did this
> > because it seemed inappropriate to have a file called config.xml in
> > site-packages.
> >
> > I think it would still be better in /usr/share/sync-engine or something.
> 
> But everything that is under the site-packages directory is perfectly 
> accessable from within the python script. You can figure out the location of 
> your module and then get the right path for your config.xml file.
> 
> If you create it in /usr/share/sync-engine, you have the probem of accessing 
> it in your code (without hardcoding, because what if the program was 
> installed with different prefix the /usr ). 
> 

I really don't like stuffing the config file (data etc) in the same dir
as the executables - I prefer to encapsulate the executables. Personally
I would prefer to see it in somewhere like /usr/share/sync-engine. Is
there something out there for python trees like pkgconfig - or can one
easily access pkgconfig from python? That way we can easily find the
prefix - and no more problems with hardcoding? I'll have a look.

        John.



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
SynCE-Devel mailing list
SynCE-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synce-devel

Reply via email to