This seems to work fine on Windows, I'm not a python programmer but adding
the line.

os.system('"C:/Program Files/Firefox Developer Edition/firefox.exe" -url
http://127.0.0.1:8080/mytiddlywiki.html')

before

HTTPServer(('localhost',8080),ExtendedHandler).serve_forever()

Seems to starts up firefox pointing to my wiki without problem. (I'm using
the Developer Edition of firefox so your path might be different!)

Thanks UBi

On Sat, 28 Dec 2019 at 22:00, UBi <[email protected]> wrote:

> I will describe my use case on Linux, Windows should work in a similar
> fashion.
>
> My TiddlyWiki files live in /home/ubi/TW, abbreviated ~/TW. There I placed
> the script as twserver.py.
> For a first test, I started it manually in a terminal window:
>
> /usr/bin/python3 ~/TW/twserver.py
>>
>
> Then I pointed my browser to http://localhost:8080/. Status messages
> started appearing in the terminal window.
>
> In the browser window a list of files and directories below ~/TW appeared.
>
> I opened one of my TW files, notes.html, and created a new Tiddler. The I
> saved the changes.
> This
> 1) backed up ~/TW/notes.html html to
> ~/TW/twBackups/notes.html.YYYYMMDDhhmmss, creating ~/TW/twBackups on the
> fly.
> 2) saved the changes to ~/TW/notes.html.
>
> Now I have to find out how / where I can add a call to the script to my
> startup or login procedures.
>
> HTH UBi
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/1a748dec-a911-478e-ba49-647c0c6a4e5b%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/1a748dec-a911-478e-ba49-647c0c6a4e5b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAspfY0KkJNF-fb2Xir21ym%3D3t2B4s4cfZwLyu_zqAnDW1hVSw%40mail.gmail.com.

Reply via email to