Skip to content

Commit

Permalink
Exec with real path to python wrappers
Browse files Browse the repository at this point in the history
Makes it possible to symlink to them from /usr/bin etc
to make dist packaging easier.

Could probably be done with shell script but python is already
requried so it seems more portable.
  • Loading branch information
wader committed Jul 3, 2017
1 parent cca50d6 commit 30df943
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Source/Python/wrappers/mp4dash
@@ -1,3 +1,3 @@
#! /bin/bash
BASEDIR=$(dirname $0)
exec python "$BASEDIR/../utils/mp4-dash.py" "$@"
#!/usr/bin/env python
import os,sys
os.execv(os.path.realpath(sys.argv[0] + "/../../utils/mp4-dash.py"), sys.argv)
6 changes: 3 additions & 3 deletions Source/Python/wrappers/mp4dashclone
@@ -1,3 +1,3 @@
#! /bin/bash
BASEDIR=$(dirname $0)
exec python "$BASEDIR/../utils/mp4-dash-clone.py" "$@"
#!/usr/bin/env python
import os,sys
os.execv(os.path.realpath(sys.argv[0] + "/../../utils/mp4-dash-clone.py"), sys.argv)
6 changes: 3 additions & 3 deletions Source/Python/wrappers/mp4hls
@@ -1,3 +1,3 @@
#! /bin/bash
BASEDIR=$(dirname $0)
exec python "$BASEDIR/../utils/mp4-hls.py" "$@"
#!/usr/bin/env python
import os,sys
os.execv(os.path.realpath(sys.argv[0] + "/../../utils/mp4-hls.py"), sys.argv)

0 comments on commit 30df943

Please sign in to comment.