Mercurial > mozilla > hg > ProfileManager
comparison profilemanager/manager.py @ 3:4d1cd60dd2a1
misc tweaks
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 05 Apr 2010 13:10:31 -0700 |
parents | 979315ed0816 |
children | 35dc297efa25 |
comparison
equal
deleted
inserted
replaced
2:fc0dabd2269f | 3:4d1cd60dd2a1 |
---|---|
2 manage Mozilla/Firefox profiles | 2 manage Mozilla/Firefox profiles |
3 """ | 3 """ |
4 | 4 |
5 import os | 5 import os |
6 import shutil | 6 import shutil |
7 | |
8 from command import command | |
9 | 7 |
10 class ProfileNotFound(Exception): | 8 class ProfileNotFound(Exception): |
11 """ | 9 """ |
12 exception when a profile is specified but is not present in a given | 10 exception when a profile is specified but is not present in a given |
13 .ini file | 11 .ini file |
18 def __init__(self, profiles): | 16 def __init__(self, profiles): |
19 """ | 17 """ |
20 - profiles: profiles.ini file | 18 - profiles: profiles.ini file |
21 """ | 19 """ |
22 self.profiles = profiles | 20 self.profiles = profiles |
23 self.directory = '' # TODO : path to self.profiles directory | 21 self.profile_dir = '' |
24 | 22 |
25 ### (public) API | 23 ### (public) API |
26 | 24 |
27 def clone(self, source, dest): | 25 def clone(self, source, dest): |
28 """ | 26 """ |