mljar / runmercury-website

RunMercury.com website with Mercury framework documentation
https://RunMercury.com
Apache License 2.0
6 stars 4 forks source link

Fix OutputDir docs #2

Closed pplonski closed 1 year ago

pplonski commented 1 year ago

Code example for OutputDir is not working

https://runmercury.com/docs/output-widgets/outputdir/

It should be

import os
with open(os.path.join(my_dir.path, "example-file.txt"), "w") as fout:
    fout.write("Hello!")