[X2Go-Commits] pyhoca-gui.git - build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d (branch) updated: 9c08d05aea7d9746c272e303f514b2a3a3ddf2bc

X2Go dev team git-admin at x2go.org
Tue Aug 27 13:20:35 CEST 2013


The branch, build-59a18b6e3b5d3f1dd8f07f26433d37fe5984a57d has been updated
       via  9c08d05aea7d9746c272e303f514b2a3a3ddf2bc (commit)
      from  3b4c55e04cad2523ab3253df4fd79de5fd4a83a9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 pyhoca-gui |   14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

The diff of changes is:
diff --git a/pyhoca-gui b/pyhoca-gui
index 7ea8193..75bc4f7 100755
--- a/pyhoca-gui
+++ b/pyhoca-gui
@@ -42,8 +42,6 @@ import x2go
 
 from pyhoca.wxgui import PyHocaGUI
 
-class NotSupportedException(exceptions.StandardError): pass
-
 # version information
 PROG_NAME = os.path.basename(sys.argv[0])
 PROG_PID  = os.getpid()
@@ -113,17 +111,7 @@ def parseargs():
         version()
 
     if a.username is None:
-        if x2go.X2GOCLIENT_OS == 'Windows':
-            import win32api
-            a.username = win32api.GetUserName()
-        elif x2go.X2GOCLIENT_OS == 'Linux':
-            import getpass
-            a.username = getpass.getuser()
-        elif x2go.X2GOCLIENT_OS  == 'Mac':
-            import getpass
-            a.username = getpass.getuser()
-        else:
-            raise NotSupportedExceptions('Platform %s is not supported' % platform.system())
+        a.username = x2go.CURRENT_LOCAL_USER
 
     return a, logger, liblogger
 


hooks/post-receive
-- 
pyhoca-gui.git (Python X2Go Client (wxPython GUI))

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "pyhoca-gui.git" (Python X2Go Client (wxPython GUI)).




More information about the x2go-commits mailing list