diff options
author | Simon Schampijer <simon@schampijer.de> | 2008-09-06 15:29:46 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2008-09-06 15:29:46 (GMT) |
commit | 0a97d77285dd8cf7f22d08c1579f4820a37e85f0 (patch) | |
tree | fe5dd5aa966887f6afff74ede5dd58d52f5dd662 | |
parent | f5ddc4286b5be25983e09e71198cbdc3cdca0fbd (diff) |
check compreg only when the profile is available #8318
-rw-r--r-- | python/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
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) |