X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=dialcentral%2Futil%2Fqwrappers.py;h=167f2ea6a78330e0a859460aa7a1b7b34dd340ae;hb=6ed73e1b58458818979bedbb9bbe41711c7fa1df;hp=09270cd39f779e8e1881d392162cf8a727089952;hpb=f18cc287171ac5512931c0963b3da0d8c202bd09;p=gc-dialer diff --git a/dialcentral/util/qwrappers.py b/dialcentral/util/qwrappers.py index 09270cd..167f2ea 100644 --- a/dialcentral/util/qwrappers.py +++ b/dialcentral/util/qwrappers.py @@ -11,6 +11,7 @@ QtGui = qt_compat.import_module("QtGui") import qui_utils import misc as misc_utils +import linux as linux_utils _moduleLogger = logging.getLogger(__name__) @@ -169,7 +170,10 @@ class ApplicationWrapper(object): @misc_utils.log_exception(_moduleLogger) def _on_log(self, checked = False): with qui_utils.notify_error(self._errorLog): - with open(self._constants._user_logpath_, "r") as f: + logPath = linux_utils.get_resource_path( + "cache", self._constants.__app_name__, "%s.log" % self._constants.__app_name__ + ) + with open(logPath, "r") as f: logLines = f.xreadlines() log = "".join(logLines) self._clipboard.setText(log)