From 22b84424c702a6a85ccf127dfcbb6ce28b101774 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 9 Sep 2022 11:13:05 +1000 Subject: Cleanup: check for Python module in BKE_appdir_program_path_init Replace the argument with an in ifdef in BKE_appdir_program_path_init. At the time `blenkernel` didn't define WITH_PYTHON_MODULE, since it does now there is no need for an argument. With the minor benefit of fewer preprocessor checks in the main() function. --- source/creator/creator.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'source/creator') diff --git a/source/creator/creator.c b/source/creator/creator.c index e7e9eeed79a..7f236a39974 100644 --- a/source/creator/creator.c +++ b/source/creator/creator.c @@ -396,17 +396,7 @@ int main(int argc, #endif /* Initialize path to executable. */ - { -#ifdef WITH_PYTHON_MODULE - /* NOTE(@campbellbarton): Always use `argv[0]` as is, when building as a Python module. - * Otherwise other methods of detecting the binary that override this argument - * which must point to the Python module for data-files to be detected. */ - const bool strict = true; -#else - const bool strict = false; -#endif - BKE_appdir_program_path_init(argv[0], strict); - } + BKE_appdir_program_path_init(argv[0]); BLI_threadapi_init(); -- cgit v1.2.3