Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: let function_calls.py work with python 3.5 #1253

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: let function_calls.py work with python 3.5
jeripeierSBB committed Jan 1, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit fd5850b3e01cbcc2a4a6b0119477dd4e925830c6
4 changes: 3 additions & 1 deletion components/gpio_control/function_calls.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,9 @@

logger = logging.getLogger(__name__)

playout_control = os.path.abspath(os.path.join(pathlib.Path(__file__).parent.absolute(), "../../scripts/playout_controls.sh"))
playout_control_relative_path = "../../scripts/playout_controls.sh"
function_calls_absolute_path = str(pathlib.Path(__file__).parent.absolute())
playout_control = os.path.abspath(os.path.join(function_calls_absolute_path, playout_control_relative_path))

def functionCallShutdown(*args):
function_call("{command} -c=shutdown".format(command=playout_control), shell=True)