diff --git a/km3net_testdata/__main__.py b/km3net_testdata/__main__.py new file mode 100644 index 0000000000000000000000000000000000000000..f5d277f4da2f8a3d0fd491ef6740e96d89977986 --- /dev/null +++ b/km3net_testdata/__main__.py @@ -0,0 +1,19 @@ +""" +This file will be invoked by python when called with th `-m` options: +``` +python -m skhep_testdata cms_hep_2012_tutorial/data.root +``` +""" +from __future__ import print_function +import argparse +from . import data_path + + +if __name__ == "__main__": + description = "Expand a testing dataset path to a full path." + parser = argparse.ArgumentParser(prog="km3net_testdata") + parser.add_argument("file_path", help="path to expand", type=str) + args = parser.parse_args() + + path = data_path(args.file_path) + print(path)