2 # -*- coding: utf-8 -*-
3 # Alexander Rødseth <rodseth@gmail.com>
9 from os
.path
import join
, exists
10 from os
import mkdir
, system
, environ
17 where
= join(environ
['HOME'], '.tiddlywiki')
18 goal
= join(where
, 'index.html')
21 system('cp /usr/share/tiddlywiki/empty.html %s' % (goal
))
22 if environ
['BROWSER']:
23 system(environ
['BROWSER'] + " " + goal
)
25 system("/usr/bin/gnome-open " + goal
)
27 if __name__
== "__main__":