# HG changeset patch # User Frederic Bastien # Date 1267037733 18000 # Node ID a88c1746b068be5fb816d1b18aabe3213c7b0b5a # Parent f36d68b65f2ce1a28ae31a0cf9e6625c78611638 copy the fct record_version from LeDeepNet diff -r f36d68b65f2c -r a88c1746b068 pylearn/version.py --- a/pylearn/version.py Wed Feb 24 13:36:01 2010 -0500 +++ b/pylearn/version.py Wed Feb 24 13:55:33 2010 -0500 @@ -6,6 +6,10 @@ _cache = dict() +def record_versions(results, modules, prefix='version_'): + for module in modules: + setattr(results, prefix+module.__name__, import_id(module.__name__)) + def src_version(module_name): """Return compact identifier of module code.