diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-01 17:58:13 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-11-01 17:58:13 (GMT) |
commit | 713999337f755484a3231f6830bb24e85d4e1ab0 (patch) | |
tree | 9634074eac781fa541172ec81922301748f7b41f /instance.py | |
parent | 5f87cc2508bd953837423dc2f43fdbb58140b280 (diff) |
handling multiple instances of myself and tmp media too
git-svn-id: http://mediamods.com/public-svn/camera-activity/Record.activity@831 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'instance.py')
-rw-r--r-- | instance.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/instance.py b/instance.py index 5a9a7f7..4f0115b 100644 --- a/instance.py +++ b/instance.py @@ -6,6 +6,7 @@ from sugar.activity import activity import shutil from color import Color +import record class Instance: key = profile.get_pubkey() @@ -29,6 +30,9 @@ class Instance: def recreateTmp(): - if (os.path.exists(Instance.tmpPath)): - shutil.rmtree(Instance.tmpPath) - os.makedirs(Instance.tmpPath)
\ No newline at end of file + #todo: figure out how to have multiple spaces for my media + #if (os.path.exists(Instance.tmpPath)): + # shutil.rmtree(Instance.tmpPath) + + os.makedirs(Instance.tmpPath) + record.Record.log.debug("Instance.tmpPath:" + str(Instance.tmpPath))
\ No newline at end of file |