← Back to team overview

openshot.developers team mailing list archive

OpenShot Path Updates

 

TJ,
I was thinking about all of the PATH changes you are making, and just wanted
to be sure you understood something (of course this is without seeing your
code).  The 1st argument of any Python program is the path that the python
script was started from (i.e. args[0] =
"/usr/share/openshot/main/OpenShot.py").  Everywhere in OpenShot I use this
"path" as the base of my file paths.  So, no matter where OpenShot lives on
the file system, it will currently work.

By using a bash script to start OpenShot, the 1st arg is still correct,
since we're kicking off the Python interpretter with the correct path.  If
wen use a Python script is in the bin, and import OpenShot.py, then the 1st
arg is no longer the path of OpenShot, and thus all of the paths will break
accross OpenShot.

It seems like a lot of work to redo all of the paths in OpenShot just to not
use a bash script to kick off the program.  I just wanted to be sure you
understood this.  If the DEBIAN packaging rules say we have to use a Python
script to kick off a Python program, then that's fine.  But if nobody cares
how the /bin works, then I would argue for not changing all of this.

Thanks,
-Jonathan

Follow ups