Author: remi
Date: 2009-07-02 15:51:06 +0200 (Thu, 02 Jul 2009)
New Revision: 5018
Modified:
software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py
Log:
* Fixed log path on Windows
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-07-02 13:22:30 UTC (rev 5017)
+++ software_suite_v3/smart-core/smart-server/trunk/util/logger/SimpleLogger.py
2009-07-02 13:51:06 UTC (rev 5018)
@@ -54,12 +54,13 @@
# Find the log path
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")
+ if not os.path.isdir(self.__logPath):
+ os.makedirs(self.__logPath)
else:
if not os.path.isdir("/var/log/tuxdroid"):
- os.makedirs("/var/log/tuxdroid", mode=0755)
+ os.makedirs("/var/log/tuxdroid", mode=0755)
self.__logPath = "/var/log/tuxdroid/"
else:
self.__logPath = logPath
------------------------------------------------------------------------------
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn