[tuxdroid-svn] r4806 - in software_suite_v3/smart-core/smart-server/trunk: resources/00_smart_serv
Status: Beta
Brought to you by:
ks156
|
From: remi <c2m...@c2...> - 2009-06-12 11:04:51
|
Author: remi
Date: 2009-06-12 13:04:25 +0200 (Fri, 12 Jun 2009)
New Revision: 4806
Modified:
software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py
software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py
Log:
* Updated logs path on Windows
Modified: software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py 2009-06-12 09:38:01 UTC (rev 4805)
+++ software_suite_v3/smart-core/smart-server/trunk/resources/00_smart_server_base/04_resourceMenu.py 2009-06-12 11:04:25 UTC (rev 4806)
@@ -221,7 +221,8 @@
self.haveXsl = True
self.xslPath = "/data/web_interface/server_menu/xsl/menu.xsl"
if os.name == 'nt':
- self.__logPath = os.path.expanduser("~")
+ self.__logPath = os.path.join(os.environ['ALLUSERSPROFILE'],
+ "Kysoh", "Tux Droid", "logs")
else:
self.__logPath = "/var/log/tuxdroid"
Modified: software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py
===================================================================
--- software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py 2009-06-12 09:38:01 UTC (rev 4805)
+++ software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py 2009-06-12 11:04:25 UTC (rev 4806)
@@ -55,6 +55,8 @@
if (logPath == None) or (not os.path.isdir(logPath)):
if os.name == 'nt':
self.__logPath = os.path.expanduser("~")
+ self.__logPath = os.path.join(os.environ['ALLUSERSPROFILE'],
+ "Kysoh", "Tux Droid", "logs")
else:
if not os.path.isdir("/var/log/tuxdroid"):
os.makedirs("/var/log/tuxdroid", mode=0755)
|