Make conf private, expose the nick name from env
This commit is contained in:
+12
-1
@@ -17,7 +17,7 @@ else:
|
||||
|
||||
from sugar import env
|
||||
|
||||
env.setup()
|
||||
env.setup_system()
|
||||
|
||||
from session.Emulator import Emulator
|
||||
|
||||
@@ -26,6 +26,17 @@ if os.environ.has_key('SUGAR_EMULATOR') and \
|
||||
emulator = Emulator()
|
||||
emulator.start()
|
||||
|
||||
from FirstTimeDialog import FirstTimeDialog
|
||||
import conf
|
||||
|
||||
profile = conf.get_profile()
|
||||
if profile.get_nick_name() == None:
|
||||
dialog = FirstTimeDialog()
|
||||
dialog.run()
|
||||
profile.save()
|
||||
|
||||
env.setup_user(profile)
|
||||
|
||||
from session.Session import Session
|
||||
|
||||
session = Session()
|
||||
|
||||
Reference in New Issue
Block a user