On Jun 12, 3:44 am, SamDonaldson <[EMAIL PROTECTED]> wrote:
> Right, but hardcoding the img_dir in my dev.cfg will not make this
> portable on windows.  Is there a way to construct the path in the
> dev.cfg using os.path.join etc.. and then storing that in img_dir and
> then using it everywhere?

Regarding having separate configuration files, I find I have to do
this anyway, because my database details are different on the server,
my desktop pc and my laptop. So I have three files called

dev.server.cfg
dev.desktop.cfg
dev.laptop.cfg

These files are all under version control. dev.cfg is *not* under
version control - it has to be manually copied into place from the
appropriate file. This way I can update (or export) from my version
control system into the development environment and not mess up the
configuration file.

-- Bruce


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to