From c070acf3bec715282348595478712857558614cf Mon Sep 17 00:00:00 2001 From: Richard Henwood Date: Wed, 13 Feb 2019 19:54:20 -0600 Subject: [PATCH] Make more readable strings by using format method. --- src/claudia_launcher.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/claudia_launcher.py b/src/claudia_launcher.py index 27a5789..fd6d1ab 100755 --- a/src/claudia_launcher.py +++ b/src/claudia_launcher.py @@ -832,10 +832,14 @@ class ClaudiaLauncher(QWidget, ui_claudia_launcher.Ui_ClaudiaLauncherW): last_pos += 1 - if haveCarla and os.path.exists("/usr/" + self.lib_path + "/carla/libcarla_utils.so"): - utils = CarlaUtils("/usr/" + self.lib_path + "/carla/libcarla_utils.so") + if haveCarla and os.path.exists("/usr/{}/carla/libcarla_utils.so".format(self.lib_path)): + utils = CarlaUtils("/usr/{}/carla/libcarla_utils.so".format(self.lib_path)) last_pos = 0 - for i in range(utils.get_cached_plugin_count(PLUGIN_LV2, os.getenv("LV2_PATH", "~/.lv2:/usr/" + self.lib_path + "/lv2:/usr/local/" + self.lib_path + "/lv2"))): + for i in range(utils.get_cached_plugin_count(PLUGIN_LV2, + os.getenv("LV2_PATH", + "~/.lv2:"\ + "/usr/{lib_path}/lv2:"\ + "/usr/local/{lib_path}/lv2".format(lib_path=self.lib_path)))): plugin = utils.get_cached_plugin_info(PLUGIN_LV2, i) if (plugin["hints"] & PLUGIN_HAS_CUSTOM_UI) == 0: