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) 


------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to