The ConfigParser works perfectly! Thanks a bunch! Kann
On Wed, 2011-01-12 at 13:59 +0000, Alan Gauld wrote: > "Kann Vearasilp" <vearas...@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, > > _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor