| 1 |
#!/usr/bin/env python |
| 2 |
# |
| 3 |
# Author: Mike McKerns (mmckerns @caltech and @uqfoundation) |
| 4 |
# Copyright (c) 2008-2016 California Institute of Technology. |
| 5 |
# Copyright (c) 2016-2026 The Uncertainty Quantification Foundation. |
| 6 |
# License: 3-clause BSD. The full license text is available at: |
| 7 |
# - https://github.com/uqfoundation/dill/blob/master/LICENSE |
| 8 |
""" |
| 9 |
unpickle the contents of a pickled object file |
| 10 |
|
| 11 |
Examples:: |
| 12 |
|
| 13 |
$ undill hello.pkl |
| 14 |
['hello', 'world'] |
| 15 |
""" |
| 16 |
|
| 17 |
if __name__ == '__main__': |
| 18 |
import sys |
| 19 |
import dill |
| 20 |
for file in sys.argv[1:]: |
| 21 |
print (dill.load(open(file,'rb'))) |
| 22 |
|