Author: ks156
Date: 2008-12-04 14:28:03 +0100 (Thu, 04 Dec 2008)
New Revision: 3008

Modified:
   
software_suite_v2/software/http_server_resources/chatter_tux/trunk/HTTPRessource/ResourceChatterTux.py
Log:
* Fixed a bug with the file verification on windows

Modified: 
software_suite_v2/software/http_server_resources/chatter_tux/trunk/HTTPRessource/ResourceChatterTux.py
===================================================================
--- 
software_suite_v2/software/http_server_resources/chatter_tux/trunk/HTTPRessource/ResourceChatterTux.py
      2008-12-04 11:57:47 UTC (rev 3007)
+++ 
software_suite_v2/software/http_server_resources/chatter_tux/trunk/HTTPRessource/ResourceChatterTux.py
      2008-12-04 13:28:03 UTC (rev 3008)
@@ -83,12 +83,9 @@
 # Function to play emoticon asynchronously
 def CTPlayEmoticonAsync(emoticon):
     mediaToPlay = CTEmoticonToAttitune[emoticon]
-    if os.name == 'nt':
-        if not os.path.isdir(str(mediaToPlay)):
-            return
-    else:
-        if not os.path.isfile(str(mediaToPlay)):
-            return
+    
+    if not os.path.isfile(str(mediaToPlay)):
+        return
 
     if mediaToPlay.lower().rfind(".att") != -1:
         Glb_tuxApi.attitune.load(str(CTEmoticonToAttitune[emoticon]))


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to