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

Re: python - app packaging - wrapper script ?



David Timms wrote:

> Hi, I'm packaging a python based app [1], that I want to make a wrapper
> script [2] {or similar} for, so the app can start from a normal user
> terminal, with just the script name.
> 
> I have had a couple of goes, but I'm not getting it. It's supposed to
> detect the appropriate lib/lib64 directory, append the
> site-lib/appfolder path, and call the python app. Any pythonites know a
> solution ?
> 
> Or another app that does this sort of thing {this was based on yum's
> starter script, but the .py module is a bit simpler than yum.
> 
> DaveT
> 
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=448201
> [2] https://bugzilla.redhat.com/attachment.cgi?id=308584
> 

Not sure what you're trying to do here.

#! /usr/bin/python
print hello

This will run for 'normal user' using just 'script name' if made executable.



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