X-Git-Url: http://git.maemo.org/git/?p=gc-dialer;a=blobdiff_plain;f=dialcentral%2Futil%2Fqwrappers.py;h=167f2ea6a78330e0a859460aa7a1b7b34dd340ae;hp=2c50c8ae754f5f73bbd0316016093c8a3de002ee;hb=6ed73e1b58458818979bedbb9bbe41711c7fa1df;hpb=0f8dd9d965abc692b4624da75d5c65b3fe6feca4 diff --git a/dialcentral/util/qwrappers.py b/dialcentral/util/qwrappers.py index 2c50c8a..167f2ea 100644 --- a/dialcentral/util/qwrappers.py +++ b/dialcentral/util/qwrappers.py @@ -9,8 +9,9 @@ import qt_compat QtCore = qt_compat.QtCore QtGui = qt_compat.import_module("QtGui") -from util import qui_utils -from util import misc as misc_utils +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)