##// END OF EJS Templates
use glob for bad exclusion warning...
MinRK -
Show More
@@ -26,6 +26,7 b' itself from the command line. There are two ways of running this script:'
26 #-----------------------------------------------------------------------------
26 #-----------------------------------------------------------------------------
27
27
28 # Stdlib
28 # Stdlib
29 import glob
29 import os
30 import os
30 import os.path as path
31 import os.path as path
31 import signal
32 import signal
@@ -293,7 +294,7 b' def make_exclude():'
293 parent, _ = os.path.split(get_ipython_package_dir())
294 parent, _ = os.path.split(get_ipython_package_dir())
294 for exclusion in exclusions:
295 for exclusion in exclusions:
295 fullpath = pjoin(parent, exclusion)
296 fullpath = pjoin(parent, exclusion)
296 if not os.path.exists(fullpath) and not os.path.exists(fullpath + '.py'):
297 if not os.path.exists(fullpath) and not glob.glob(fullpath + '.*'):
297 warn("Excluding nonexistent file: %r\n" % exclusion)
298 warn("Excluding nonexistent file: %r\n" % exclusion)
298
299
299 return exclusions
300 return exclusions
General Comments 0
You need to be logged in to leave comments. Login now