[Pythonsudoku-devel] Problem with configuration
Brought to you by:
xoseotero
From: <xos...@gm...> - 2006-05-17 07:55:44
|
Hi Olivier, Too many time since 0.11 version (6 months). I want to release 0.12 soon but I have one problem. I've started to use distutils to make possible package the program. The problem is that this is my first try to make a multiplatform program and I don't know who to make it. I want to make possible that Python Sudoku can be used without instalation: the way it works in 0.11 where you only unzip the file, cd into the directory and execute the script; but also instalable via setup.py. On the other hand, the a installer could let you install the program in any directory and a way to set this directory should be possible. I was thinking in create 2 configuration file: a) a normal configuration file (/etc/pysdk.cfg in UNIX) for configuring each command line parameter b) platform.cfg with 4 lines to set where the system configuration is (/etc/pysdk.cfg), the user configuration (~/.pysdk.cfg), locale dir (/usr/share/locale) and other param that i forget. The problem is... where to put the platform.cfg? The only possible place that I found was inside the pythonsudoku package (pythonsudoku/*.py and pythonsudoku/platform.cfg): try to walk the python path for modules location and find the configuration file there. But this should be the place for python code only... Any idea? Maybe this is a try to do a complicated thing because of stupidity and there is a simple wat to do things, but... how? |