Skip to content

Commit

Permalink
os.chmod needs to be in octal in python3
Browse files Browse the repository at this point in the history
  • Loading branch information
Rechi authored and emilsvennesson committed Feb 7, 2019
1 parent 00de925 commit a68a311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/inputstreamhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ def _missing_widevine_libs(self):
if self._cmd_exists('ldd'):
if not os.access(self._widevine_path(), os.X_OK):
self._log('Changing {0} permissions to 744.'.format(self._widevine_path()))
os.chmod(self._widevine_path(), 0744) # this needs to be octal in python 3
os.chmod(self._widevine_path(), 0o744)

missing_libs = []
cmd = ['ldd', self._widevine_path()]
Expand Down

0 comments on commit a68a311

Please sign in to comment.