Postpone the import of robofab.interdace.all.dialogs until we are sure we are in FontLab.
git-svn-id: http://svn.robofab.com/trunk@239 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
parent
2a57ef7b10
commit
532007f86e
@ -2,7 +2,6 @@
|
||||
import os, sys
|
||||
from robofab import RoboFabError, version, numberVersion
|
||||
|
||||
from robofab.interface.all.dialogs import SelectFont, SelectGlyph
|
||||
|
||||
|
||||
class RFWorld:
|
||||
@ -77,8 +76,10 @@ world = RFWorld()
|
||||
lineBreak = os.linesep
|
||||
|
||||
if world.inFontLab:
|
||||
from robofab.interface.all.dialogs import SelectFont, SelectGlyph
|
||||
from robofab.objects.objectsFL import CurrentFont, CurrentGlyph, RFont, RGlyph, OpenFont, NewFont, AllFonts
|
||||
lineBreak = "\n"
|
||||
|
||||
elif world.inPython:
|
||||
from robofab.objects.objectsRF import CurrentFont, CurrentGlyph, RFont, RGlyph, OpenFont, NewFont, AllFonts
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user