Author: ks156
Date: 2009-03-12 09:54:52 +0100 (Thu, 12 Mar 2009)
New Revision: 3971

Modified:
   
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/sh.py
Log:
* Changed the import for Linux.
  The Python API still installed on Linux, so it's better to load the file
  located in site-packages instead of the local files.


Modified: 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/sh.py
===================================================================
--- 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/sh.py  
    2009-03-11 21:53:03 UTC (rev 3970)
+++ 
software_suite_v2/tuxware/pytuxisalive/branches/0.3.0/src/tuxisalive/api/sh.py  
    2009-03-12 08:54:52 UTC (rev 3971)
@@ -6,12 +6,17 @@
 Tux shell is the shell way to use Tuxdroid. It create an API object with the
 "Free" client mode.
 """
+import os
+if os.name == 'nt':
+    from version import author, date, versin, licence
+else:
+    from tuxisalive.api.version import author, date, version, licence
 
-from version import author, date, version, licence
 __author__ = author
 __date__ = date
 __version__ = version
 __licence__ = licence
+
 del author, date, version, licence
 
 #    Copyright (C) 2009 C2ME Sa
@@ -22,10 +27,13 @@
 import sys
 import signal
 import atexit
-import os
 
-from TuxAPIConst import *
-from TuxAPI import TuxAPI
+if os.name == 'nt':
+    from TuxAPIConst import *
+    from TuxAPI import TuxAPI
+else:
+    from tuxisalive.api.TuxAPIConst import *
+    from tuxisalive.api.TuxAPI import TuxAPI
 
 global tux
 


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Tux-droid-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tux-droid-svn

Reply via email to