diff options
author | Campbell Barton <campbell@blender.org> | 2022-09-09 04:13:05 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-09-09 04:13:05 +0300 |
commit | 22b84424c702a6a85ccf127dfcbb6ce28b101774 (patch) | |
tree | 927ccc27a7d3a27bc4868c812321a6aa5b10a47f /source/creator | |
parent | fad7a30de31977dee8c090dc196c796e17d2fcde (diff) |
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.
Diffstat (limited to 'source/creator')
-rw-r--r-- | source/creator/creator.c | 12 |
1 files changed, 1 insertions, 11 deletions
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(); |