# Path: fmodpy/fmodpy.py
# def fimport(input_fortran_file, name=None, build_dir=None,
#             output_dir=None, depends_files=None, **kwargs):
# def make_wrapper(source_file, build_dir, module_name):
# def autocompile_files(build_dir, target_file=None):
# def prepare_build_directory(source_dir, build_dir):
# def should_rebuild_module(source_path, module_name, module_directory):
# def configure(*to_delete, **to_save):


import os, sys, traceback
    import fmodpy
from .fmodpy import __doc__, fimport, configure
        from fmodpy.exceptions import UnrecognizedConfiguration
# Making this module accessible by being called directly from command line.

# Import all of the fmodpy module

if len(sys.argv) < 2:
    help(fmodpy)
    exit()
else:
    file_path = os.path.abspath(sys.argv[1])

# Pretty error handling when this file is executed directly     
def custom_excepthook(exc_type, value, tb):
    l = ''.join(traceback.format_exception(exc_type, value, tb))
    print(l)

# Path: fmodpy/fmodpy.py
# def fimport(input_fortran_file, name=None, build_dir=None,
#             output_dir=None, depends_files=None, **kwargs):
# def make_wrapper(source_file, build_dir, module_name):
# def autocompile_files(build_dir, target_file=None):
# def prepare_build_directory(source_dir, build_dir):
# def should_rebuild_module(source_path, module_name, module_directory):
# def configure(*to_delete, **to_save):


# Path: fmodpy/__main__.py
import os, sys, traceback
    import fmodpy
from .fmodpy import __doc__, fimport, configure
        from fmodpy.exceptions import UnrecognizedConfiguration

# Making this module accessible by being called directly from command line.

# Import all of the fmodpy module

if len(sys.argv) < 2:
    help(fmodpy)
    exit()
else:
    file_path = os.path.abspath(sys.argv[1])

# Pretty error handling when this file is executed directly     
def custom_excepthook(exc_type, value, tb):
    l = ''.join(traceback.format_exception(exc_type, value, tb))
    print(l)

sys.excepthook = custom_excepthook