7 dirs = ['advanced','trick']
12 print "Please specify input_file."
16 srcdir = os.path.join (in_dir, dir)
17 destdir = os.path.join ('input', 'lsr', dir)
18 if not(os.path.isdir(destdir)):
19 print "Please run this script from the head of the source tree,"
20 print " and/or check that you have the right categories."
23 file_names = os.listdir (destdir)
24 for file in file_names:
25 if (file.endswith ('.ly')):
26 if (file[:3] != 'AAA'):
27 os.remove( os.path.join(destdir,file) )
29 file_names = os.listdir (in_dir + dir)
30 for file in file_names:
31 src = os.path.join (srcdir, file)
32 dest = os.path.join (destdir, file)
33 shutil.copyfile (src, dest)