We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44cdd4a commit fda45eeCopy full SHA for fda45ee
docs/api.md
@@ -56,8 +56,16 @@ from pyscript import config
56
57
# It's just a dict.
58
print(config.get("files"))
59
+# This will be either "mpy" or "py" depending on the current interpreter.
60
+print(config["type"])
61
```
62
63
+!!! info
64
+
65
+ The `config` object will always include a `type` attribute set to either
66
+ `mpy` or `py`, to indicate which version of Python your code is currently
67
+ running in.
68
69
!!! warning
70
71
Changing the `config` dictionary at runtime has no effect on the actual
0 commit comments