diff options
Diffstat (limited to 'src/jarabe/intro/__init__.py')
-rw-r--r-- | src/jarabe/intro/__init__.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/jarabe/intro/__init__.py b/src/jarabe/intro/__init__.py new file mode 100644 index 0000000..d2932f1 --- /dev/null +++ b/src/jarabe/intro/__init__.py @@ -0,0 +1,26 @@ +import os + +import gtk + +from sugar import env +from sugar.profile import get_profile + +from jarabe.intro.window import IntroWindow +from jarabe.intro.window import create_profile + + +def check_profile(): + profile = get_profile() + + path = os.path.join(os.path.expanduser('~/.sugar'), 'debug') + if not os.path.exists(path): + profile.create_debug_file() + + path = os.path.join(env.get_profile_path(), 'config') + if os.path.exists(path): + profile.convert_profile() + + if not profile.is_valid(): + win = IntroWindow() + win.show_all() + gtk.main() |