use parentheses when you call reload (only)and you need to remember to use reload in the first place to get the current version of your code to run moreoverreloads aren' transitive--reloading module reloads that module onlynot any modules it may import--so you sometimes have to reload multiple files because of these complications (and others we'll explore laterincluding the reloadfrom issue mentioned briefly in prior note in this it' generally good idea to avoid the temptation to launch by imports and reloads for now the idle run-run module menu option described in the next sectionfor exampleprovides simpler and less error-prone way to run your filesand always runs the current version of your code system shell command lines offer similar benefits you don' need to use reload if you use any of these other techniques in additionyou may run into trouble if you use modules in unusual ways at this point in the book for instanceif you want to import module file that is stored in directory other than the one you're working inyou'll have to skip ahead to and learn about the module search path for nowif you must importtry to keep all your files in the directory you are working in to avoid complications that saidimports and reloads have proven to be popular testing technique in python classesand you may prefer using this approach too as usualthoughif you find yourself running into wallstop running into wallusing exec to run module files strictly speakingthere are more ways to run code stored in module files than have yet been presented here for instancethe exec(open('module py'read()built-in function call is another way to launch files from the interactive prompt without having to import and later reload each such exec runs the current version of the code read from filewithout requiring later reloads (script py is as we left it after reload in the prior section)python exec(open('script py'read()win spam!spam!spam!spam!spam!spam!spam!spamchange script py in text edit window to print * exec(open('script py'read() if you're too curious to waitthe short story is that python searches for imported modules in every directory listed in sys path-- python list of directory name strings in the sys modulewhich is initialized from pythonpath environment variableplus set of standard directories if you want to import from directory other than the one you are working inthat directory must generally be listed in your pythonpath setting for more detailssee and appendix how you run programs