diff --git a/src/entry_point.py b/src/entry_point.py index 17b6de9..93f6ac2 100644 --- a/src/entry_point.py +++ b/src/entry_point.py @@ -1 +1,27 @@ -""" __main__.py: Call the command-line interface. """ import os import sys from os.path import dirname, abspath # Set the library path lib_dir = os.path.join(os.environ['CONDA_PREFIX'], "lib") sys.path.append(lib_dir) # Set the HDF5 plugin path parent_dir = dirname(dirname(abspath(__file__))) os.environ['HDF5_PLUGIN_PATH'] = os.path.join(parent_dir, "lib") # Import the command-line interface import cli def main(): cli.main() if __name__ == '__main__': main() \ No newline at end of file +""" +__main__.py: +Call the command-line interface. +""" + +import os +import sys +from os.path import dirname, abspath + +# Set the library path +lib_dir = os.path.join(os.environ['CONDA_PREFIX'], "lib") +sys.path.append(lib_dir) + +# Set the HDF5 plugin path +parent_dir = dirname(dirname(abspath(__file__))) +os.environ['HDF5_PLUGIN_PATH'] = os.path.join(parent_dir, "lib") + +# Import the command-line interface +import cli + + +def main(): + cli.main() + + +if __name__ == '__main__': + main()