Skip to content

Commit

Permalink
use obj property, not private attr
Browse files Browse the repository at this point in the history
  • Loading branch information
stolarczyk committed Feb 26, 2021
1 parent b14c89d commit b201234
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions divvy/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(self, entries=None, filepath=None):
self.compute = None
self.setdefault("adapters", None)
self.activate_package(DEFAULT_COMPUTE_RESOURCES_NAME)
self.config_file = self.__file_path
self.config_file = self.file_path

def write(self, filename=None):
super(ComputingConfiguration, self).write(filename)
Expand Down Expand Up @@ -147,7 +147,7 @@ def activate_package(self, package_name):
if not os.path.isabs(self.compute.submission_template):
try:
self.compute.submission_template = os.path.join(
os.path.dirname(self.__file_path),
os.path.dirname(self.file_path),
self.compute.submission_template)
except AttributeError as e:
# Environment and environment compute should at least have been
Expand Down

0 comments on commit b201234

Please sign in to comment.