Skip to content

Commit 83c6ded

Browse files
committed
Attempt to fix the site module issue on readthedocs.
1 parent 2c433e2 commit 83c6ded

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
]
5050

5151
autodoc_typehints = 'description'
52+
autodoc_mock_imports = ["site"]
5253

5354
# Prefix each autosectionlabel with the name of the document it is in and a colon
5455
autosectionlabel_prefix_document = True

labscript_utils/modulewatcher.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333

3434

3535
class ModuleWatcher(object):
36+
"""A watcher that reloads modules that have been modified on disk
37+
38+
Only reloads modules imported after instantiation. Does not reload C extensions.
39+
40+
Args:
41+
debug (bool, optional): When :code:`True`, prints debugging information
42+
when reloading modules.
43+
"""
3644
def __init__(self, debug=False):
3745
self.debug = debug
3846
# A lock to hold whenever you don't want modules unloaded:

0 commit comments

Comments
 (0)