/qiime_more_info.py Secret
Created
September 6, 2022 23:22
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
from qiime2.sdk import PluginManager | |
class SnoopImports: | |
def find_spec(self, name, path=None, target=None): | |
print(name, path) | |
return None | |
def main(): | |
for entry in PluginManager.iter_entry_points(): | |
print(f"=> LOADING {entry.module_name}") | |
entry.load() | |
sys.meta_path = [SnoopImports()] + sys.meta_path | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment