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

Resolve circular dependency in "executables.py" #24

Closed
davidbloss opened this issue Jun 24, 2021 · 0 comments
Closed

Resolve circular dependency in "executables.py" #24

davidbloss opened this issue Jun 24, 2021 · 0 comments

Comments

@davidbloss
Copy link
Member

Problem

In "ats/src/ats/executables.py" the import statement

from configuration import machine

is called from within the Executable class' init function.

This is a circular dependency workaround since
"configuration.py" imports "machines.py"
"machines.py" imports "configuration.py" (the contents of machines.py are not imported yet)
"configuration.py" imports "executables.py"
and "executables.py" imports "configuration.machine" (more accurately: from configuration import machine).

For now the code works since Executable (in executables.py) does not try to reference configuration.machine until after it has been imported elsewhere.

Goal

Resolve dependencies so "from configuration import machine" can exist outside of the Executable.init() call.

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

No branches or pull requests

2 participants