/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: Jasper Groenewegen
  • Date: 2008-07-20 08:39:03 UTC
  • mfrom: (553.1.3 trunk)
  • Revision ID: colbrac@xs4all.nl-20080720083903-awdkboqlrt9uz9f1
Merge small fixes to imports and 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"