Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <mpg@redhat.com>2007-11-29 23:03:38 (GMT)
committer Marco Pesenti Gritti <mpg@redhat.com>2007-11-29 23:12:38 (GMT)
commit301a956b1290c0ecfc70a97efe61472624248d3f (patch)
treed5e92623eded23a1b6ccb3f5cafb9e9bab1b8cd1 /webactivity.py
parent50819ac11e79d8acc5d292ce4e9e53afd5c27ac0 (diff)
Better version checks
Diffstat (limited to 'webactivity.py')
-rwxr-xr-xwebactivity.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/webactivity.py b/webactivity.py
index 91d60f5..ae54848 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)