summaryrefslogtreecommitdiff
path: root/debian/source_simple-scan.py
blob: f889cdeea4bbb7e524a3efc97a265fc729f155ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'''apport package hook for simple-scan

(c) 2010 Canonical Ltd.
Author: Robert Ancell <robert.ancell@canonical.com>
'''

import os.path
from apport.hookutils import *

LOG_FILE = os.path.expanduser('~/.cache/simple-scan/simple-scan.log')

def add_info(report):
    attach_hardware(report)
    attach_file_if_exists(report, LOG_FILE, 'SimpleScanLog')