started stripping down risk-and-reliability to create template

This commit is contained in:
Guilherme Alvarenga 2024-02-23 18:02:52 +02:00
parent 6697c0f5f8
commit 75ff95fa67
127 changed files with 54699 additions and 0 deletions

23
book/code/test.py Normal file
View file

@ -0,0 +1,23 @@
import modulefinder
finder = modulefinder.ModuleFinder()
finder.run_script('cosinewave.py')
moduleslist = {}
for name, mod in finder.modules.iteritems():
filename = mod.__file__
if filename is None:
continue
if '__' in name:
continue
#if "python" in filename.lower():
# continue
moduleslist[name.split(".")[0]] = True
#print '%s: %s' % (name, filename)
#print ','.join(mod.globalnames.keys()[:3])
print('Loaded modules:')
for name, dummy in moduleslist.iteritems():
print(name)
input("Press Enter to continue...")