Skip to content

Commit

Permalink
Remove debug and guess which of the config library locations is needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
abadger committed Sep 18, 2024
1 parent 307d105 commit 3140f2b
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions leapp/repository/actor_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,32 +314,11 @@ def injected_context(self):
module_prefix='leapp.libraries.actor',
paths=[os.path.join(self._repo_dir, self.directory, x) for x in self.libraries]))

try:
# libraries path:
with open("/tmp/debug.log", "a") as f:
f.write('%s' % self.libraries)
except Exception as e:
with open("/tmp/debug.log", "a") as f:
f.write("Exception reading self.libraries: %s" % e)

try:
# configs path:
with open("/tmp/debug.log", "a") as f:
f.write('%s' % self.configs)
except Exception as e:
with open("/tmp/debug.log", "a") as f:
f.write("Exception reading self.configs: %s" % e)

sys.meta_path.append(
LeappLibrariesFinder(
module_prefix='leapp.configs',
paths=[os.path.join(self._repo_dir, self.directory, x) for x in self.configs]))

sys.meta_path.append(
LeappLibrariesFinder(
module_prefix='leapp.configs.actor',
paths=[os.path.join(self._repo_dir, self.directory, x) for x in self.configs]))

previous_path = os.getcwd()
os.chdir(os.path.join(self._repo_dir, self._directory))
try:
Expand Down

0 comments on commit 3140f2b

Please sign in to comment.