From 0a97d77285dd8cf7f22d08c1579f4820a37e85f0 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Sat, 06 Sep 2008 15:29:46 +0000 Subject: check compreg only when the profile is available #8318 --- (limited to 'python') diff --git a/python/__init__.py b/python/__init__.py index 3d4741c..6065ebe 100644 --- a/python/__init__.py +++ b/python/__init__.py @@ -37,8 +37,6 @@ def set_app_version(version): _app_version = version def startup(profile_path, components_dirs=[]): - _check_compreg(profile_path) - _hulahop.set_profile_path(profile_path) if not os.path.isdir(profile_path): try: @@ -46,6 +44,8 @@ def startup(profile_path, components_dirs=[]): except OSError, exc: raise RuntimeError('Could not create user directory.') + _check_compreg(profile_path) + for path in components_dirs: _hulahop.add_components_path(path) -- cgit v0.9.1