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.

Add missing exec bit for mp4-hls.py
  • Loading branch information
wader committed Jul 3, 2017
1 parent cca50d6 commit a10720b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Empty file modified Source/Python/utils/mp4-hls.py 100644 → 100755
Empty file.
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.dirname(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.dirname(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.dirname(os.path.realpath(sys.argv[0])) + "/../utils/mp4-hls.py", sys.argv)

0 comments on commit a10720b

Please sign in to comment.