Skip to content

Commit

Permalink
CLN: Wrap create with bool when getting user writable directory
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 committed Jul 6, 2020
1 parent d35d1b0 commit 94c89b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproj/_datadir.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 94c89b2

Please sign in to comment.