Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > question (newbie)

Thread Tools question (newbie)

Ali Dada
Posts: n/a
hi all:

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.
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):

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:
install-base= C:\Program Files\pirt

2) execute something like:
>python bdist_wininst install install_scripts

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

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

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??

Reply With Quote
John J. Lee
Posts: n/a
"Ali Dada" <(E-Mail Removed)> writes:

For a better chance of help, 1. turn on line-wrapping (ATM a single
paragraph is on a single line, which is hard to read for many people),
2. post your (not as an attachment, in the body text). And,
of course, try to persuade your newsreader not to mangle any source
code you post

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
question row filter (more of sql query question) =?Utf-8?B?YW5kcmV3MDA3?= ASP .Net 2 10-06-2005 01:07 PM
Quick Question - Newby Question =?Utf-8?B?UnlhbiBTbWl0aA==?= ASP .Net 4 02-16-2005 11:59 AM
Question on Transcender Question :-) eddiec MCSE 6 05-20-2004 06:59 AM
Question re: features of the 831 router (also a 924 question) Wayne Cisco 0 03-02-2004 07:57 PM
Syntax Question - Novice Question sean ASP .Net 1 10-20-2003 12:18 PM