Skip to content

Commit

Permalink
real path (PaddlePaddle#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
kinghuin authored Mar 16, 2020
1 parent 223cd2f commit f0472f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion paddlehub/module/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ def check_module_valid(self, module_path):
"name"].s
return True, info
else:
module_file = os.path.join(module_path, 'module.py')
module_file = os.path.realpath(
os.path.join(module_path, 'module.py'))
if os.path.exists(module_file):
basename = os.path.split(module_path)[-1]
dirname = os.path.join(
Expand Down

0 comments on commit f0472f7

Please sign in to comment.