openshot.developers team mailing list archive
-
openshot.developers team
-
Mailing list archive
-
Message #00218
Re: OpenShot Path Updates
Hello Everybody
Interresting precision but if there are a problem, i have creates at
lp:~eolinwen/openshot/cenwen a secure copie. Of course evreybody can use it,
it's the revision 139.
Thanks, Olivier
2009/8/30 Jonathan Thomas <jonathan.oomph@xxxxxxxxx>
> 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
>
> _______________________________________________
> Mailing list: https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> Post to : openshot.developers@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~openshot.developers<https://launchpad.net/%7Eopenshot.developers>
> More help : https://help.launchpad.net/ListHelp
>
>
--
Cenwen un elfe sur la banquise
References