[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: python - app packaging - wrapper script ?



Neal Becker wrote:
David Timms wrote:

#! /usr/bin/python
print hello

This will run for 'normal user' using just 'script name' if made executable.
I'm at least past "hello world".

The Fedora rpm packaging requirements for python tell me to put the apps' bits a in subdir of the site-packages folder:
/usr/lib/python2.5/site-packages/pyvnc2swf  [on 32 bit]
/usr/lib64/python2.5/site-packages/pyvnc2swf  [on 64 bit]

However, an app in that location is not on the path, and hence can't be invoked with just 'vnc2swf', 'vnc2swf.py'.

Seems the procedure to follow is to make a wrapper script and install it into /usr/bin, that invokes vnc2swf.py which will be in one of the above two folders, dependent on the machine architecture.

I have uploaded that to:
http://members.iinet.net.au/~timmsy/pyvnc2swf/vnc2swf.py

Is that clearer ?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]