【发布时间】:2015-07-01 03:47:18
【问题描述】:
我正在使用 Python Pygatt 模块 (https://github.com/ampledata/pygatt/tree/master/pygatt)。
classes.py 文件导入 pygatt.constants,它设置了一些常量。我无法弄清楚如何在我尝试过的文件 foo.py 中覆盖这些常量:
import pygatt
pygat.classes.pygatt.constants.DEFAULT_CONNECT_TIMEOUT_S = 8
但它不起作用。我很困惑,这可能是我正在做的愚蠢的事情。我们将不胜感激!
【问题讨论】:
-
我读了那篇文章,但没有帮助。