#!/usr/bin/env python3
# runner.py
# Located in the top-level <svr pmemstat> directory

import os
import sys

# Add the project directory to PYTHONPATH for editable install support
project_dir = os.path.dirname(os.path.abspath(__file__))
if project_dir not in sys.path:
    sys.path.insert(0, project_dir)

# Import and run the main module directly
if __name__ == '__main__':
    sys.argv[0] = 'pmemstat'
    from pmemstat import main
    main.run()
