diff options
author | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-12-14 04:03:14 (GMT) |
---|---|---|
committer | erikb <erikb@574bc980-5f2d-0410-acbc-c8f9f0eb14e0> | 2007-12-14 04:03:14 (GMT) |
commit | f706c43145128d40f8c639059800fe7282abe063 (patch) | |
tree | 9be98c6f44599722a4469fd08349a9c03d23197d /recorded.py | |
parent | 24abbc6129ac8b3b24eb30aa474fe5792239c817 (diff) |
46 has correct rainbow tmp directories
git-svn-id: http://mediamods.com/public-svn/camera-activity/tags/46@973 574bc980-5f2d-0410-acbc-c8f9f0eb14e0
Diffstat (limited to 'recorded.py')
-rw-r--r-- | recorded.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/recorded.py b/recorded.py index 1c22973..fcdc315 100644 --- a/recorded.py +++ b/recorded.py @@ -108,7 +108,7 @@ class Recorded: def getThumbFilepath( self ): - return os.path.join(Instance.instancePath, self.thumbFilename) + return os.path.join(Instance.tmpPath, self.thumbFilename) def getAudioImagePixbuf( self ): @@ -126,7 +126,7 @@ class Recorded: def getAudioImageFilepath( self ): if (self.audioImageFilename != None): - audioFilepath = os.path.join(Instance.instancePath, self.audioImageFilename) + audioFilepath = os.path.join(Instance.tmpPath, self.audioImageFilename) return os.path.abspath(audioFilepath) else: return self.getThumbFilepath() @@ -136,24 +136,24 @@ class Recorded: if (self.datastoreId == None): if (not self.buddy): #just taken by you, so it is in the tempSessionDir - mediaFilepath = os.path.join(Instance.instancePath, self.mediaFilename) + mediaFilepath = os.path.join(Instance.tmpPath, self.mediaFilename) return os.path.abspath(mediaFilepath) else: if (self.downloadedFromBuddy): #the user has requested the high-res version, and it has downloaded - mediaFilepath = os.path.join(Instance.instancePath, self.mediaFilename) + mediaFilepath = os.path.join(Instance.tmpPath, self.mediaFilename) return os.path.abspath(mediaFilepath) else: if self.mediaFilename == None: #creating a new filepath, probably just got here from the mesh ext = Constants.mediaTypes[self.type][Constants.keyExt] - recdPath = os.path.join(Instance.instancePath, "recdFile_"+self.mediaMd5+"."+ext) + recdPath = os.path.join(Instance.tmpPath, "recdFile_"+self.mediaMd5+"."+ext) recdPath = utils.getUniqueFilepath(recdPath, 0) self.mediaFilename = os.path.basename(recdPath) - mediaFilepath = os.path.join(Instance.instancePath, self.mediaFilename) + mediaFilepath = os.path.join(Instance.tmpPath, self.mediaFilename) return os.path.abspath(mediaFilepath) else: - mediaFilepath = os.path.join(Instance.instancePath, self.mediaFilename) + mediaFilepath = os.path.join(Instance.tmpPath, self.mediaFilename) return os.path.abspath(mediaFilepath) else: #pulling from the datastore, regardless of who took it, cause we got it |