As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
#!/usr/bin/bash | |
putsc() { | |
echo -en "\e[34m :: \e[0m $@" | |
} | |
putscl() { | |
putsc "$@\n" | |
} |
As of January 2018, Raspbian does not yet include the latest Python release, Python 3.6. This means we will have to build it ourselves, and here is how to do it. There is also an ansible role attached that automates it all for you.
from multiprocessing import Process, Manager, Event | |
def display_process(dict_global, is_master, exit_event): | |
import os | |
if is_master: | |
os.environ["KIVY_BCM_DISPMANX_ID"] = "4" | |
else: | |
os.environ["KIVY_BCM_DISPMANX_ID"] = "5" | |
# kivy module imports go here |