[wpdev-commits] xmlscripts/web sessions.py,1.3,1.4
Brought to you by:
rip,
thiagocorrea
|
From: <co...@us...> - 2003-11-10 12:35:44
|
Update of /cvsroot/wpdev/xmlscripts/web In directory sc8-pr-cvs1:/tmp/cvs-serv4569 Modified Files: sessions.py Log Message: Fixed "cannot find the path sessions/*" at first start. Index: sessions.py =================================================================== RCS file: /cvsroot/wpdev/xmlscripts/web/sessions.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sessions.py 5 Jan 2003 20:37:38 -0000 1.3 --- sessions.py 10 Nov 2003 12:35:37 -0000 1.4 *************** *** 106,109 **** --- 106,112 ---- """ def clear_sessions(): + if not os.path.exists( 'sessions' ): + os.mkdir( 'sessions', 0700 ) + files = os.listdir( 'sessions/' ) for file in files: |