On 09/08/13 12:16 PM, Bob Howard - BCD wrote:
> Thanks, grepper,
> We're using 0.34 because we just want to make a menu & xml file for
> this, with our own calls to dvdauthor. Sometimes we just want a fast
> 1-video DVD with no menu.
>
> Our Ubuntu 12.04 LTS has Apache's $HOME as www-data, too.
> We made good progress and built a DVD w/menu. The key seems to have
> been changing ownership of our data drive (/media/HDD2) with
> chown www-data:bob
>
> We may need to rip it all out and start over for our real project.
> tovid was first installed from /home/bob so in some circumstances tovid
> wants to find /bob/lib/tovid
>
> Our goal is automated DVD creation from PHP web script by feeding mpeg
> filenames to tovid and/or dvdauthor.
>
> If we do it again, any suggestions as to the proper install directory...
> or other tips?
> Thanks, again,
> Bob
Hi Bob,
Just as an aside: "tovid disc" has a -no-menu option and -keep-files,
but it doesn't actually create an xml file for that one. I don't think
it is worth adding another option there as a generic "no menu" xml is
easy enough to have on hand.
Getting to the rest of your post. I'm not sure I really understand your
question. The default install directory is /usr/local
(/usr/local/lib/tovid /usr/local/lib/python2.x/dist-packages/libtovid
(or site-packages) /usr/local/bin and so on). That is the suggested
install route for non system packages. A distro would install to /usr
and probably use /usr/share for the shell scripts and perhaps pyshared
for the python modules. If you install to $HOME (/home/bob/lib/ etc) you
would have to set the PYTHONPATH appropriately, or add to sys.path if
using python. You can find the current python path by doing:
python -c "import sys; print(sys.path)" , in a shell.
$ python -c "import sys; print(sys.path)"
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/home/robert/.local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7']
$ PYTHONPATH=/home/robert/lib/python2.7/dist-packages:$PATH python -c
"import sys; print(sys.path)"
['', '/home/robert/lib/python2.7/dist-packages', '/home/robert/bin',
'/usr/local/bin', '/usr/bin', '/bin', '/usr/local/games', '/usr/games',
'/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu',
'/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/home/robert/.local/lib/python2.7/site-packages',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gst-0.10',
'/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7']
Dunno if I have come close to answering your question :)
Robert