Author: duncan
Date: Thu Mar 29 20:10:34 2007
New Revision: 9420
Modified:
branches/rel-1/freevo/src/helpers/encodingserver.py
Log:
unsafe use of /tmp patch from A Mennucc applied
Modified: branches/rel-1/freevo/src/helpers/encodingserver.py
==============================================================================
--- branches/rel-1/freevo/src/helpers/encodingserver.py (original)
+++ branches/rel-1/freevo/src/helpers/encodingserver.py Thu Mar 29 20:10:34 2007
@@ -76,8 +76,6 @@
except:
print String(text)
-tmppath = '/tmp/encodingserver'
-
jam = jellyToXML
unjam = unjellyFromXML
@@ -219,10 +217,7 @@
def main():
global DEBUG
- #check for /tmp/encodingserver and if it doesn't exist make it
- if not (os.path.exists(tmppath) and os.path.isdir(tmppath)):
- os.mkdir(tmppath)
- #chdir to /tmp/encodingserver
+ tmppath = tempfile.mkdtemp(prefix = 'encodeserver')
os.chdir(tmppath)
app = Application("EncodingServer")
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog