-2

I'm using the Python Pygatt module (https://github.com/ampledata/pygatt/tree/master/pygatt).

The classes.py file imports pygatt.constants which sets a few constants. I cannot figure out how to override these constants in my file foo.py I've tried:

import pygatt

pygat.classes.pygatt.constants.DEFAULT_CONNECT_TIMEOUT_S = 8

But it doesn't work. I'm very confused and it's probably something dumb that I'm doing. Your help would be appreciated!

Blark
  • 307
  • 1
  • 3
  • 15

1 Answers1

-1

try this:

from pygatt.classes import pygatt
pygatt.constants.DEFAULT_CONNECT_TIMEOUT_S = 8
Medhat Gayed
  • 2,585
  • 20
  • 12