Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoid using getcwd() in cli module pattern matching #282

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

martenson
Copy link
Member

I think this did not work in most of the cases due to the getcwd() call.

I think this did not work in most of the cases due to the getcwd() call.
@@ -24,7 +24,7 @@ def __init__(self, code_dir='lib'):
"""
"""
def __load(module_path, d):
module_pattern = join(join(getcwd(), code_dir, *module_path.split('.')), '*.py')
module_pattern = join(join(dirname(__file__), module_path.split('.')[-1]), '*.py')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the implementation of the pulsar variant and the Galaxy variant have diverged.
I think you could copy https://github.com/galaxyproject/galaxy/blob/dev/lib/galaxy/jobs/runners/util/cli/__init__.py over and that should fix it too ? In either case we should unify these two before we diverge further.

Might even be worth to delete the Galaxy variant and only keep the pulsar code.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants