Changeset 1637:dde4ef52193b in orange-bioinformatics


Ignore:
Timestamp:
04/19/12 14:28:15 (2 years ago)
Author:
mitar
Branch:
default
Message:

Removing __file__ usage.

Location:
_bioinformatics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/obiMeSH.py

    r1636 r1637  
    147147                    #if len(l)>0: 
    148148                    #   # if we found something lets save it to a file 
     149                    #   TODO: Never use __file__ to access data, but pkg_resources so that it works also in eggs 
    149150                    #   __dataPath = os.path.join(os.path.dirname(__file__), self.path) 
    150151                    #   fileHandle = open(os.path.join(__dataPath,'cid-annotation.dat'), 'a') 
  • _bioinformatics/widgets/prototypes/OWGenomeMap.py

    r1636 r1637  
    5858        # check that all files in directories "Genome Map" are included in the list 
    5959        self.RecentGenomeMaps = filter(os.path.exists, self.RecentGenomeMaps) 
    60         widgetDir = os.path.dirname(os.path.abspath(__file__)) + "/" 
    61         gmapList = glob.glob(widgetDir + 'Genome Map/*.tab') 
    62         for f in gmapList: 
    63             f = os.path.abspath(f) 
    64             if f not in self.RecentGenomeMaps: 
    65                 self.RecentGenomeMaps.append( f) 
    6660        genesInRecentGenomeMapFile = {} 
    6761        # 
Note: See TracChangeset for help on using the changeset viewer.