I hereby claim:
- I am nemec on github.
- I am nemec (https://keybase.io/nemec) on keybase.
- I have a public key ASCqm6e26k5vfpweED4KRb96LTVkUZHIzaMb6388G-rv0Qo
To claim this, I am signing this object:
| @main | |
| def __main__(): | |
| print("hello world") |
I hereby claim:
To claim this, I am signing this object:
| // Example showing the utility of | |
| // https://github.com/nemec/pathlib | |
| // Given an input and output directory, zip the input directory | |
| // and drop it into the output directory. The zip file should | |
| // have the same name as the input directory (plus .zip extension) | |
| var dirToZip = new PureNtPath(@"C:\Users\Admin\MyPhotos"); | |
| // These work too, paths are normalized when created from strings! |
| def _as(var, ident): | |
| import inspect | |
| cur_frame = inspect.currentframe() | |
| outer_locals = inspect.getouterframes(cur_frame)[1][0].f_locals | |
| outer_locals[ident] = var | |
| return var | |
| if __name__ == "__main__": | |
| d = ['a', 'b'] |