From 94c89b23ce82ed9f7c6fd1c139aacf8a77d22ead Mon Sep 17 00:00:00 2001 From: snowman2 Date: Sun, 5 Jul 2020 20:03:49 -0500 Subject: [PATCH] CLN: Wrap create with bool when getting user writable directory --- pyproj/_datadir.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproj/_datadir.pyx b/pyproj/_datadir.pyx index 7b4023707..b2a071bb5 100644 --- a/pyproj/_datadir.pyx +++ b/pyproj/_datadir.pyx @@ -108,7 +108,7 @@ def get_user_data_dir(create=False): str: The user writable data directory. """ - return pystrdecode(proj_context_get_user_writable_directory(NULL, create)) + return pystrdecode(proj_context_get_user_writable_directory(NULL, bool(create))) cdef void pyproj_log_function(void *user_data, int level, const char *error_msg):