From f1a098203be8c44a52ed5d2a72982a3f634d4df6 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 2 Jan 2017 16:42:09 +0200 Subject: py: Move helpers to the pykms module Instead of forcing applications to import the helpers manually, move them to pykms by turning it into a python module. Signed-off-by: Laurent Pinchart --- py/tests/gamma.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'py/tests/gamma.py') diff --git a/py/tests/gamma.py b/py/tests/gamma.py index a6b68cc..5969b82 100755 --- a/py/tests/gamma.py +++ b/py/tests/gamma.py @@ -1,7 +1,6 @@ #!/usr/bin/python3 import pykms -from helpers import * # This hack makes drm initialize the fbcon, setting up the default connector card = pykms.Card() @@ -32,10 +31,10 @@ for i in range(len): gamma = pykms.Blob(card, arr); -set_prop(crtc, "GAMMA_LUT", gamma.id) +crtc.set_prop("GAMMA_LUT", gamma.id) input("press enter to remove gamma\n") -set_prop(crtc, "GAMMA_LUT", 0) +crtc.set_prop("GAMMA_LUT", 0) input("press enter to exit\n") -- cgit v1.2.3