diff options
Diffstat (limited to 'instance.py')
-rwxr-xr-x[-rw-r--r--] | instance.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/instance.py b/instance.py index bcee466..afe69c7 100644..100755 --- a/instance.py +++ b/instance.py @@ -6,15 +6,20 @@ from sugar import util class Instance: key = profile.get_pubkey() keyHash = util.sha_data(key) - + keyHashPrintable = util.printable_hash(keyHash) - + instancePath = None + savePath = None def __init__(self, ca): self.__class__.instancePath = os.path.join(ca.get_activity_root(), "instance") recreateTmp() - + + def get_path(self): + if self.savePath: + return self.savePath + return self.instancePath def recreateTmp(): if (not os.path.exists(Instance.instancePath)): |