[X2Go-Commits] [pyhoca-gui] 01/01: Windows: fix log-file-with-PID-in-name creation

git-admin at x2go.org git-admin at x2go.org
Wed Apr 16 09:53:01 CEST 2014


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository pyhoca-gui.

commit 8c9894f49e68b7188d98f252a294af034415a2b1
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Apr 16 09:52:58 2014 +0200

    Windows: fix log-file-with-PID-in-name creation
---
 pyhoca/wxgui/mswin_logging.py |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pyhoca/wxgui/mswin_logging.py b/pyhoca/wxgui/mswin_logging.py
index 1034876..2961244 100644
--- a/pyhoca/wxgui/mswin_logging.py
+++ b/pyhoca/wxgui/mswin_logging.py
@@ -32,9 +32,9 @@ def setup_mswinlog(PROG_NAME):
             def __init__(self, filemode='a'):
                 self._filemode = filemode
                 if self._filemode == "w+":
-                    for _file in os.listdir(os.dirname(self._fname)):
+                    for _file in os.listdir(os.path.dirname(self._fname)):
                         try:
-                            os.remove(_file)
+                            os.remove(os.path.join(os.path.dirname(self._fname), _file))
                         except WindowsError:
                             pass
 

--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/pyhoca-gui.git



More information about the x2go-commits mailing list