~jon-hill/spud/mac_port

« back to all changes in this revision

Viewing changes to diamond/bin/diamond

  • Committer: Fraser Waters
  • Date: 2011-08-22 17:22:47 UTC
  • mto: This revision was merged to the branch mainline in revision 457.
  • Revision ID: fraser.waters08@imperial.ac.uk-20110822172247-g5cx3yz4o1pl0bx3
Mega commit, working version of diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
  except IndexError:
100
100
    input_filename = None
101
101
 
 
102
  if sys.platform == "win32" or sys.platform == "win64":
 
103
    possible_logofiles = [os.path.join(diamond_path, "gui", "diamond.png")]
 
104
  else:
 
105
    possible_logofiles = [os.path.join(diamond_path, "gui", "diamond.svg"), "/usr/share/diamond/gui/diamond.svg"]
 
106
        
102
107
  logofile = None
103
 
  for possible_logofile in [os.path.join(diamond_path, "gui", "diamond.svg"), "/usr/share/diamond/gui/diamond.svg"]:
 
108
  for possible_logofile in possible_logofiles:
104
109
    try:
105
110
      os.stat(possible_logofile)
106
111
      logofile = possible_logofile