#FLM: Import .ufo File into FontLab

from robofab.world import NewFont
from robofab.interface.all.dialogs import GetFolder

path = GetFolder("Please select a .ufo")
if path is not None:
	font = NewFont()
	font.readUFO(path, doProgress=True)
	font.update()
	print 'DONE!'

#FLM: Import .ufo File into FontLab

from robofab.world import NewFont
from robofab.interface.all.dialogs import GetFileOrFolder

path = GetFileOrFolder("Please select a .ufo")
if path is not None:
	font = NewFont()
	font.readUFO(path, doProgress=True)
	font.update()
	print 'DONE!'

Use GetFileOrFolder for the dialog.
Use GetFileOrFolder for the dialog.

git-svn-id: 68c5a305180a392494b23cb56ff711ec9d5bf0e2@493 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
