[Tutor] Ideas about global variables for accessing project's file
Kann Vearasilp
vearasilp at gmail.com
Wed Jan 12 17:18:51 CET 2011
The ConfigParser works perfectly! Thanks a bunch!
Kann
On Wed, 2011-01-12 at 13:59 +0000, Alan Gauld wrote:
> "Kann Vearasilp" <vearasilp at gmail.com> wrote
>
> > Is there a way to make a global variable for the project to make my
> > life
> > easier? Sometime like... PROJECT_PATH/src/modules/mod1 which
> > PROJECT_PATH
> > should work with every machines.
>
> You can use a relative path based on your installatiojn root
> You can use a config file that the user edits to specify the root
> directory
> You can use an environment variable to specify the root directory
>
> If you are working with Windows you could also use a registry entry to
> store the root.
>
> HTH,
>
>
More information about the Tutor
mailing list