/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to about.py

  • Committer: Jelmer Vernooij
  • Date: 2008-07-18 20:12:54 UTC
  • mto: This revision was merged to the branch mainline in revision 555.
  • Revision ID: jelmer@samba.org-20080718201254-phkice8vdvr2svvm
Fix license path finding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
def read_license():
34
34
    license_paths = [data_path("COPYING"), "/usr/share/common-licenses/GPL-2"]
35
35
    for license_file in license_paths:
36
 
        if os.path.exists(license_file):
 
36
        if license_file is not None and os.path.exists(license_file):
37
37
            return file(license_file).read()
38
38
    # Fall back to just license name if we can't find the file
39
39
    return "GPLv2 or later"