Author: dmeyer
Date: Sat Feb 10 20:49:56 2007
New Revision: 9202

Modified:
   trunk/core/src/conf.py

Log:
use /var/lib when running as root

Modified: trunk/core/src/conf.py
==============================================================================
--- trunk/core/src/conf.py      (original)
+++ trunk/core/src/conf.py      Sat Feb 10 20:49:56 2007
@@ -237,7 +237,9 @@
 i18n.install(unicode=True)
 
 # create needed directories.
-DATADIR = os.path.expanduser('~/.' + application + '/data')
+DATADIR = '/var/lib/' + application
+if os.getuid():
+    DATADIR = os.path.expanduser('~/.' + application + '/data')
 if not os.path.isdir(DATADIR) and not 'setup.py' in sys.argv[:2]:
     os.makedirs(DATADIR)
 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to