I don\'t think this has been asked before-I have a folder that has lots of different .py files. The script I\'ve made only uses some-but some call others & I don\'t kno
Freeze does pretty close to what you describe. It does an extra step of generating C files to create a stand-alone executable, but you could use the log output it produces to get the list of modules your script uses. From there it's a simple matter to copy them all into a directory to be zipped up (or whatever).