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):