Skip to content

Commit

Permalink
Make readme path more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Feb 12, 2018
1 parent 906b977 commit 5a186c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion swaggertosdk/SwaggerToSdkCore.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def get_readme_path(readme_file, base_folder='.'):
If start with http, assume online, ignore base_folder and convert to raw link if necessary.
If base_folder is not None, assume relative to base_folder.
"""
if readme_file.startswith("http"):
if not isinstance(readme_file, Path) and readme_file.startswith("http"):
return GithubLink.from_string(readme_file).as_raw_link()
else:
if base_folder is None:
Expand Down

0 comments on commit 5a186c7

Please sign in to comment.