Commits

mitar committed dde4ef5

Removing `__file__` usage.

Comments (0)

Files changed (2)

_bioinformatics/obiMeSH.py

 					
 					#if len(l)>0:
 					#	# if we found something lets save it to a file
+					#   TODO: Never use __file__ to access data, but pkg_resources so that it works also in eggs
 					#	__dataPath = os.path.join(os.path.dirname(__file__), self.path)
 					#	fileHandle = open(os.path.join(__dataPath,'cid-annotation.dat'), 'a')
 					#	for s in l:

_bioinformatics/widgets/prototypes/OWGenomeMap.py

         # check if genome maps exist and remove those that don't
         # check that all files in directories "Genome Map" are included in the list
         self.RecentGenomeMaps = filter(os.path.exists, self.RecentGenomeMaps)
-        widgetDir = os.path.dirname(os.path.abspath(__file__)) + "/"
-        gmapList = glob.glob(widgetDir + 'Genome Map/*.tab')
-        for f in gmapList:
-            f = os.path.abspath(f)
-            if f not in self.RecentGenomeMaps:
-                self.RecentGenomeMaps.append( f)
         genesInRecentGenomeMapFile = {}
         #