Changeset 3695

Show
Ignore:
Timestamp:
08/31/08 20:27:28 (5 years ago)
Author:
devtar
Message:

updated setup.py. UmitBT works on Linux now. Appended static /usr path on paths.py under UmitBT/umitBTCore

Location:
branch/UmitBluetooth
Files:
1 added
9 modified

Legend:

Unmodified
Added
Removed
  • branch/UmitBluetooth/UmitBT/__init__.py

    r3522 r3695  
    1919 
    2020__author__ = "Devtar Singh <devtar@gmail.com>" 
    21 __date__ = "9 August 2008" 
    22 __version__ = "0.7RC1" 
     21__date__ = "1 September 2008" 
     22__version__ = "0.7RC2" 
  • branch/UmitBluetooth/UmitBT/share/__init__.py

    r3522 r3695  
    1919 
    2020__author__ = "Devtar Singh <devtar@gmail.com>" 
    21 __date__ = "9 August 2008" 
    22 __version__ = "0.7RC1" 
     21__date__ = "1 September 2008" 
     22__version__ = "0.7RC2" 
  • branch/UmitBluetooth/UmitBT/share/icons/__init__.py

    r3522 r3695  
    1919 
    2020__author__ = "Devtar Singh <devtar@gmail.com>" 
    21 __date__ = "9 August 2008" 
    22 __version__ = "0.7RC1" 
     21__date__ = "1 September 2008" 
     22__version__ = "0.7RC2" 
  • branch/UmitBluetooth/UmitBT/share/pixmaps/__init__.py

    r3522 r3695  
    1919 
    2020__author__ = "Devtar Singh <devtar@gmail.com>" 
    21 __date__ = "9 August 2008" 
    22 __version__ = "0.7RC1" 
     21__date__ = "1 September 2008" 
     22__version__ = "0.7RC2" 
  • branch/UmitBluetooth/UmitBT/umitBTCore/__init__.py

    r3388 r3695  
    1919 
    2020__author__ = "Devtar Singh <devtar@gmail.com>" 
    21 __date__ = "9 August 2008" 
    22 __version__ = "0.7RC1" 
     21__date__ = "1 September 2008" 
     22__version__ = "0.7RC2" 
  • branch/UmitBluetooth/UmitBT/umitBTCore/about.py

    r3522 r3695  
    2323import os 
    2424 
     25import path 
     26 
    2527class about_dialog: 
    2628 
     
    3335        self.about.set_authors(["Devtar Singh <devtar@gmail.com>"]) 
    3436        self.about.set_website("www.umitproject.org") 
    35         umit_logo = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join("UmitBT", "share", "icons", "umit_16.ico"))) 
     37        umit_logo = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "icons", "umit_16.ico"))) 
    3638        self.about.set_icon(umit_logo) 
    3739        self.about.set_copyright("License: GNU GPL") 
  • branch/UmitBluetooth/UmitBT/umitBTCore/btcore.py

    r3522 r3695  
    4343import interface 
    4444import io 
     45import path 
    4546 
    4647# globals used due to functions such as set_info and ease of access in io.py. needs redesigning 
     
    6970        count = 1 
    7071        if(os.name=="mac"): 
     72                # Lightblue Output: [('00:0E:6D:71:A2:0B', u'My6600', 5243396)]. Yet to be tested. 
    7173                btdevices = lightblue.findservices() 
    72                 # Lightblue Output: [('00:0E:6D:71:A2:0B', u'My6600', 5243396)] 
    7374        else: 
    7475                btdevices = bluetooth.discover_devices(flush_cache = True, lookup_names = True) 
     
    103104        print "BTID: " + str(btid) 
    104105        if(os.name=="mac"): 
     106                 # Lightblue Output: [('00:0D:93:19:C8:68', 10, 'OBEX Object Push')]. Yet to be tested. 
    105107                 sdpservices = lightblue.findservices(address=btmac[btid]) 
    106                   # Lightblue Output: [('00:0D:93:19:C8:68', 10, 'OBEX Object Push')] 
    107108        else:    
    108109                 sdpservices = bluetooth.find_service(address=btmac[btid]) 
     
    127128        btnamesearch = [""] 
    128129        # btdb.db search                 
    129         if(os.path.exists(os.path.join("UmitBT", "config", "db", "btdb.db"))): 
     130        if(os.path.exists(os.path.join(path.paths, "UmitBT", "config", "db", "btdb.db"))): 
    130131                print "start manufac detection" 
    131                 btdb_dir = os.path.abspath(os.path.join("UmitBT", "config", "db", "btdb.db")) 
     132                btdb_dir = os.path.abspath(os.path.join(path.paths, "UmitBT", "config", "db", "btdb.db")) 
    132133                btdb = open(btdb_dir, "rb") 
    133134                while ((len(btname)-1) > count): 
     
    168169         count+=1 
    169170         if(btmanu[count].find("Nokia") > -1 ): 
    170           pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join("UmitBT", "share", "pixmaps", "nokia.png"))) 
     171          pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "pixmaps", "nokia.png"))) 
    171172          interface.mapmodel.append([btname[count], pixbuf]) 
    172173         elif(btmanu[count].find("Motorola") > -1): 
    173           pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join("UmitBT", "share", "pixmaps", "moto.png"))) 
     174          pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "pixmaps", "moto.png"))) 
    174175          interface.mapmodel.append([btname[count], pixbuf]) 
    175176         elif(btmanu[count].find("Sony") > -1): 
    176           pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join("UmitBT", "share", "pixmaps", "sony-eric.png"))) 
     177          pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "pixmaps", "sony-eric.png"))) 
    177178          interface.mapmodel.append([btname[count], pixbuf]) 
    178179         else: 
    179           pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join("UmitBT", "share", "pixmaps", "bt.png"))) 
     180          pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.abspath(os.path.join(path.paths, "UmitBT", "share", "pixmaps", "bt.png"))) 
    180181          interface.mapmodel.append([btname[count], pixbuf]) 
    181182 
  • branch/UmitBluetooth/UmitBT/umitBTCore/interface.py

    r3522 r3695  
    3030import about 
    3131import btcore 
     32import path 
    3233 
    3334 
     
    5657        self.window.set_size_request(800, 500) 
    5758        self.window.set_title("Umit Bluetooth Scanner") 
    58         win_icon = os.path.join("UmitBT", "share", "icons", "umit_16.ico") 
     59        win_icon = os.path.join(path.paths, "UmitBT", "share", "icons", "umit_16.ico") 
    5960        self.window.set_icon_from_file(win_icon) 
    6061        self.window.set_position(gtk.WIN_POS_CENTER) 
  • branch/UmitBluetooth/setup.py

    r3578 r3695  
    2828from stat import * 
    2929 
    30 #main_dir = os.path.join('UmitBT', 'umitBTCore') 
    31 #higwidgets_dir = os.path.join('UmitBT','higwidgets') 
    3230sample_dir = os.path.join('UmitBT','sample') 
    3331pixmaps_dir = os.path.join('UmitBT','share', 'pixmaps')