diff options
author | Marco Pesenti Gritti <mpg@redhat.com> | 2007-11-29 23:03:38 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <mpg@redhat.com> | 2007-11-29 23:03:38 (GMT) |
commit | 9697a446fa48d1bef6684f842fcd78a93f9c7bb7 (patch) | |
tree | f8a4deb26cadc8d4194395b2da927d86d8d0b184 /webactivity.py | |
parent | 3fbafbf7e8101db290949a1b7cbf4b77915ae526 (diff) |
Better version checks
Diffstat (limited to 'webactivity.py')
-rwxr-xr-x | webactivity.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webactivity.py b/webactivity.py index d52788b..70f57be 100755 --- a/webactivity.py +++ b/webactivity.py @@ -48,10 +48,15 @@ if os.path.exists(_version_file): f.close() if _profile_version < 1: - os.mkdir(_profile_path) + if not os.path.exists(_profile_path): + os.mkdir(_profile_path) shutil.copy('cert8.db', _profile_path) os.chmod(os.path.join(_profile_path, 'cert8.db'), 0600) +f = open(_version_file, 'w') +f.write(str(PROFILE_VERSION)) +f.close() + import hulahop hulahop.startup(_profile_path) |