<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1276" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>hi all:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>i want to write an application with python, but 
first i was checking how to set (or let the user choose) the install directory 
and the application data directory. </FONT></DIV>
<DIV><FONT face=Arial size=2>i was reading in the documentation "Distributing 
Python modules" and i understood i should do 2 things to accomplish my 2 
objectives (setting the install directory and setting the application data 
directory):</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1) writing a setup.cfg configuration file in the 
same directory as the setup file and in it i specify the options for the 
install command (rather than adding them to the cmd prompt) my file went 
like:</FONT></DIV>
<DIV><FONT face=Arial size=2>[install]<BR>install-base= C:\Program 
Files\pirt<BR> </FONT></DIV>
<DIV><FONT face=Arial size=2>2) execute something like:</FONT></DIV>
<DIV><FONT face=Arial size=2>>python setup.py bdist_wininst install 
install_scripts</FONT></DIV>
<DIV><FONT face=Arial size=2>to get a windows installer for my application, and 
in a script i could put the initialization code i want, for now 
simply creating a directory </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>but it didn't work. i got an installer but the 
options were unchangeable: installation directory was 
C:\Python23\Lib\site-packages\ (not as i specified in setup.cfg) and the script 
i wrote wasn't run</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>so in short: how can i, in unix and windows, give 
default values such as "C:\Program Files\myApp" and "C:\Documents and 
Settings\user\Application Data" and let the user have the ability to change them 
(like in all install scripts), does distutils give me a neat functionality or 
will i go ahead and write a small python script from scratch??</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thanks..</FONT></DIV></BODY></HTML>