From 3140f2b31dbf1c1355f34bbf448ab188793780f4 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 17 Sep 2024 22:21:45 -0700 Subject: [PATCH] Remove debug and guess which of the config library locations is needed. --- leapp/repository/actor_definition.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/leapp/repository/actor_definition.py b/leapp/repository/actor_definition.py index a7a62d6f..11a2d58e 100644 --- a/leapp/repository/actor_definition.py +++ b/leapp/repository/actor_definition.py @@ -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: