Iain Buchanan
2008-03-17 04:01:28 UTC
Hi,
just looking through the sync-engine code to tweak the gentoo package,
and I came across this in config.py:
# check if we have a config
self.config_dir = os.path.join(os.path.expanduser("~"), ".synce")
self.config_path = os.path.join(self.config_dir, "config.xml")
if not os.path.exists(self.config_path):
if not os.path.isdir(self.config_dir):
os.mkdir(self.config_dir)
oldconf = os.path.join(self.sepath,"config/config.xml")
shutil.copy(oldconf, self.config_path)
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"
Is that right? I couldn't find any other reference to config.xml.
Shouldn't it go into
"/usr/lib/python2.5/site-packages/SyncEngine/config/config.xml"
or /usr/share or something instead?
thanks,
just looking through the sync-engine code to tweak the gentoo package,
and I came across this in config.py:
# check if we have a config
self.config_dir = os.path.join(os.path.expanduser("~"), ".synce")
self.config_path = os.path.join(self.config_dir, "config.xml")
if not os.path.exists(self.config_path):
if not os.path.isdir(self.config_dir):
os.mkdir(self.config_dir)
oldconf = os.path.join(self.sepath,"config/config.xml")
shutil.copy(oldconf, self.config_path)
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"
Is that right? I couldn't find any other reference to config.xml.
Shouldn't it go into
"/usr/lib/python2.5/site-packages/SyncEngine/config/config.xml"
or /usr/share or something instead?
thanks,
--
Iain Buchanan <iaindb at netspace dot net dot au>
It was the Law of the Sea, they said. Civilization ends at the waterline.
Beyond that, we all enter the food chain, and not always right at the top.
-- Hunter S. Thompson
Iain Buchanan <iaindb at netspace dot net dot au>
It was the Law of the Sea, they said. Civilization ends at the waterline.
Beyond that, we all enter the food chain, and not always right at the top.
-- Hunter S. Thompson