hamster-applet r619 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r619 - trunk/hamster
- Date: Sat, 8 Nov 2008 09:45:56 +0000 (UTC)
Author: tbaugis
Date: Sat Nov 8 09:45:55 2008
New Revision: 619
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=619&view=rev
Log:
use webbrowser module to launch web browser.
fixes bug 559819
Modified:
trunk/hamster/reports.py
Modified: trunk/hamster/reports.py
==============================================================================
--- trunk/hamster/reports.py (original)
+++ trunk/hamster/reports.py Sat Nov 8 09:45:55 2008
@@ -1,6 +1,7 @@
# - coding: utf-8 -
# Copyright (C) 2008 Toms BauÄis <toms.baugis at gmail.com>
+# Copyright (C) 2008 Nathan Samson <nathansamson at gmail dot com>
# This file is part of Project Hamster.
@@ -19,6 +20,7 @@
from hamster import stuff
import os
import datetime as dt
+import webbrowser
def simple(facts, start_date, end_date):
dates_dict = stuff.dateDict(start_date, "start_")
@@ -118,5 +120,5 @@
report.write("</table></body></html>")
report.close()
- os.system("gnome-open %s" % report_path.replace(" ", "\ "))
+ webbrowser.open_new("file://"+report_path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]