Code reloading. Fixes #212

This commit is contained in:
Fabio Zadrozny 2021-02-18 15:38:46 -03:00
parent 6ee41420e6
commit 9ab891b328
19 changed files with 1505 additions and 112 deletions

View file

@ -79,6 +79,19 @@ class DebugConfig(collections.MutableMapping):
"class_": "group",
"protected": "inline",
},
"autoReload": {
"enable": False,
"watch_dirs": [],
"pollingInterval": 1,
"exclude": [
"**/.git/**",
"**/__pycache__/**",
"**/node_modules/**",
"**/.metadata/**",
"**/site-packages/**",
],
"include": ["**/*.py", "**/*.pyw"],
},
}
def __init__(self, *args, **kwargs):

View file

@ -138,7 +138,11 @@ class Session(object):
self.config = config.DebugConfig(
debug_config
if debug_config is not None
else {"justMyCode": True, "name": "Test", "type": "python"}
else {
"justMyCode": True,
"name": "Test",
"type": "python",
}
)
"""The debug configuration for this session."""