sure just add a list of files to exclude
def extra_datas(mydir,exclude=[]):
def rec_glob(p, files):
import os
import glob
for d in glob.glob(p):
if os.path.isfile(d):
files.append(d)
rec_glob("%s/*" % d, files)
files = []
rec_glob("%s/*" % mydir, files)
return [(f, f, 'DATA') for f om files if f not in exclude]
a.datas += extra_datas(some_dir,["something.txt","something.exe",...])
as for DLL's im pretty sure there is an explicit exlude to exclude dll's that would normally automagically be included
[edit] see this answer wrt excluding dll's https://stackoverflow.com/a/17595149/541038