Advertisement
furas

Python - basename(dirname(i))

Mar 3rd, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. subdirectories = [ basename(dirname(i)) for i in glob(os.path.join(search_path, '*', "__init__.py")) ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement