twblue/src/update/__init__.py

13 lines
277 B
Python
Raw Normal View History

2015-02-16 17:21:27 -06:00
import glob
import os.path
import platform
def find_datafiles():
system = platform.system()
if system == 'Windows':
file_ext = '*.exe'
else:
file_ext = '*.sh'
path = os.path.abspath(os.path.join(__path__[0], 'bootstrappers', file_ext))
return [('', glob.glob(path))]