File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/wordpress_markdown_blog_loader Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1919
2020def get_default_host () -> Optional [str ]:
2121 """
22- returns the default api host from ~/.wordpress.ini
22+ returns the default api host from .wordpress.ini and/or ~/.wordpress.ini
2323 """
2424 config = configparser .ConfigParser ()
25- config .read (expanduser ("~/.wordpress.ini" ))
25+ config .read ([ ".wordpress.ini" , expanduser ("~/.wordpress.ini" )] )
2626 return config .defaults ().get ("host" )
2727
2828
@@ -64,7 +64,7 @@ def __init__(self, **kwargs):
6464
6565 def read_from_config (self , host : str ):
6666 config = configparser .ConfigParser ()
67- config .read (expanduser ("~/.wordpress.ini" ))
67+ config .read ([ ".wordpress.ini" , expanduser ("~/.wordpress.ini" )] )
6868
6969 if not host :
7070 host = config .defaults ().get ("host" )
You can’t perform that action at this time.
0 commit comments