sugar-toolkit-gtk3/sugar/objects/mime.py
2007-05-24 12:30:42 +02:00

12 lines
310 B
Python

try:
from sugar import _sugarext
except ImportError:
from sugar import ltihooks
from sugar import _sugarext
def get_for_file(file_name):
return _sugarext.get_mime_type_for_file(file_name)
def get_from_file_name(file_name):
return _sugarext.get_mime_type_from_file_name(file_name)