Show
Ignore:
Timestamp:
09/15/07 08:56:27 (17 years ago)
Author:
jerome
Message:

Thanks to Rodolfo Cossalter, fixed a problem under Windows 98/Me :
if not user was logged-in an error occured when trying to retrieve
the current username.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykoticon/trunk/bin/pykoticon

    r179 r180  
    268268    def getCurrentUserName(self) : 
    269269        """Retrieves the current user's name.""" 
    270         if isWindows : 
    271             return win32api.GetUserName() 
    272         else :     
    273             try : 
     270        try : 
     271            if isWindows : 
     272                return win32api.GetUserName() 
     273            else :     
    274274                return pwd.getpwuid(os.geteuid())[0] 
    275             except : 
    276                 return "** Unknown **" 
     275        except : 
     276            return "** Unknown **" 
    277277             
    278278    def OnIconify(self, event) :