~dpm/qreator/snap

« back to all changes in this revision

Viewing changes to qreator/tools.py

  • Committer: Stefan Schwarzburg
  • Date: 2012-10-30 08:57:13 UTC
  • mfrom: (89.7.4 qreator)
  • mto: (89.10.24 qreator_sms)
  • mto: This revision was merged to the branch mainline in revision 101.
  • Revision ID: stefan.schwarzburg@googlemail.com-20121030085713-2zk6dhgn13fqzx7g
added sms icons; added missing tools file; added a line to shrink the main window to a reasonable size...

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import os
 
2
from qreator_lib.qreatorconfig import get_data_file
 
3
 
 
4
def get_media_path(media_file_name):
 
5
    media_filename = get_data_file('media', '%s' % (media_file_name,))
 
6
    if not os.path.exists(media_filename):
 
7
        media_filename = None
 
8
 
 
9
    return media_filename