"""Small demo to run dependency detection on the current workspace/project. Run from repository root to print detected external modules. """ import pathlib import sys from pyinstallerguiwrapper import dependency_detector def main(): proj = pathlib.Path('.').resolve() print(f"Detecting dependencies in: {proj}") detected = dependency_detector.detect_external_dependencies(str(proj), logger=print) print("\nDetected external modules:") for m in detected: print(f" - {m}") if __name__ == '__main__': main()