Jakub Piotr Cłapa wrote:
Ionutz Borcoman wrote:
* renamed the starting script from pycomicsviewer to pycomicsviewer.py
Is it really needed? (especially on *nix)
Nope, but I want to make it work on Windows, too.
On Windows there are 2 problems:
* the name of the module is PyComicsViewer and the build_scripts can't create the pycomicsviewer because it conflicts with the module's name
* if I don't have the '.py' extension, the file manager will not know how to launch it and will ask the user about this.
So, to avoid these, I came with this simple solution :/
If there are better solutions, I'm open to suggestions.
This probably is the only solution on Windows. We have some problems with this in PLD Linux Distribution because we don't put source python scripts in /usr/bin (we generaly don't package them in any way) and if the script is named just like a module than there are some problems with finding modules (the program_and_module_name_at_the_same_time.py file is found in the current dir first but it's a shell script, not a Python one and importing fails with a suprising error message).
Probably don't bother or just make it conditional (with .py on Windows because it's needed and w/o on other platforms).
-- Regards, Jakub Piotr Cłapa _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
