Free Motion Capture for Everyone πβ¨
TypeScript
Merge pull request #338
jonmatthis1bceb625002b
diff --git a/freemocap/__init__.py b/freemocap/__init__.pyindex acf48dd2..fe81181a 100644--- a/freemocap/__init__.py+++ b/freemocap/__init__.py@@ -5,12 +5,10 @@ __email__ = "[email protected]"__version__ = "v1.0.0-rc"__description__ = "A free and open source markerless motion capture system for everyone πβ¨"-__package_name__ = "freemocap"__repo_url__ = f"https://github.com/freemocap/{__package_name__}/"__repo_issues_url__ = f"{__repo_url__}issues"-import sysfrom pathlib import Path@@ -25,3 +23,23 @@ import logginglogger = logging.getLogger(__name__)logger.info(f"Initializing {__package_name__} package, version: {__version__}, from file: {__file__}")+++def RunMe(*args, **kwargs):+ logger.info(+ "User tried using `pre-alpha` entry point (`import freemocap: freemocap.RunMe() - displaying friendly message then re-directing to `freemocap.__main__:main()` entry point")++ print("--------------------------------\n"+ "--------------------------------\n"+ "--------------------------------\n"+ "Hello! Looks like you're trying to use the `pre-alpha` entry point for FreeMoCap.\n"+ "This entry point is deprecated, so we're launching the GUI via `freemocap.__main__:main()` entry point.\n"+ "if you need to install the `pre-alpha` code, use `pip install freemocap==0.0.54`"+ "Thank you for using FreeMoCap!\n"+ "--------------------------------\n"+ "--------------------------------\n"+ "(NOTE - this entry point will be removed eventually\n"+ "--------------------------------\n")++ from freemocap.__main__ import main+ main()diff --git a/src/gui/main/main.py b/src/gui/main/main.pynew file mode 100644index 00000000..d428ccdb--- /dev/null+++ b/src/gui/main/main.py@@ -0,0 +1,23 @@+import logging++logger = logging.getLogger(__name__)++if __name__ == "__main__":+ logger.info(+ "User tried using `pre-alpha` entry point (`import freemocap: freemocap.RunMe() - displaying friendly message then re-directing to `freemocap.__main__:main()` entry point")++ print("--------------------------------\n"+ "--------------------------------\n"+ "--------------------------------\n"+ "Hello! Looks like you're trying to use the `alpha GUI` entry point for FreeMoCap.\n"+ "This entry point is deprecated, so we're launching the GUI via `freemocap.__main__:main()` entry point.\n"+ "If you want use the `alpha GUI` code, use check out the `v0.1.0` tag in the github repo.\n"+ "Thank you for using FreeMoCap!\n"+ "--------------------------------\n"+ "(NOTE - this entry point will be removed eventually\n"+ "--------------------------------\n"+ "--------------------------------\n")++ from freemocap.__main__ import main++ main()