Skip to content

Commit 3205a45

Browse files
authored
link to debug wiki page in downloading files created by python section
1 parent 35871d2 commit 3205a45

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

wiki/pygbag-code/README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,15 @@ print( json.dumps(repo["packages"], sort_keys=True, indent=4) )
8888
implemented, event based, TODO sample
8989

9090
### downloading files created by python
91-
92-
( you can use cd/ls/pwd to navigate filesystem)
93-
type in the repl:
91+
Python files can still be created normally and will appear in the browser's filesystem.
92+
```py
93+
# example
94+
with open("file.txt", "w") as f:
95+
f.write("newly created file")
9496
```
95-
rx /path/of/file_to_download/name_of_file
97+
98+
Downloading these files from the browser's filesystem to a user's filesystem is possible through pygbag's debug repl.
99+
Ways to do so are available in the [debug repl's wiki page](https://pygame-web.github.io/wiki/pygbag-debug/).
96100
```
97101
98102
### editing local files

0 commit comments

Comments
 (0)