Skip to content

Commit

Permalink
fix: let function_calls.py work with python 3.5 (#1253)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeripeierSBB authored Jan 1, 2021
1 parent 657f87f commit ce8e9ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/gpio_control/function_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce8e9ff

Please sign in to comment.