From 494bd6b94202022e56b3615636966cf51230bb75 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Tue, 31 Oct 2017 11:26:38 -0400 Subject: [PATCH] Use os.path.join Signed-off-by: Jonathan Rajotte --- lttng_ivc/settings.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lttng_ivc/settings.py b/lttng_ivc/settings.py index adfa6b5..7c9e3e4 100644 --- a/lttng_ivc/settings.py +++ b/lttng_ivc/settings.py @@ -3,13 +3,15 @@ import os test_only = {} -configuration_file = os.path.dirname(os.path.abspath(__file__)) + "/config.yaml" -run_configuration_file = os.path.dirname(os.path.abspath(__file__)) + "/run_configuration.yaml" +base_dir = os.path.dirname(os.path.abspath(__file__)) -projects_cache_folder = os.path.dirname(os.path.abspath(__file__)) + "/runtime/projects_cache" -git_remote_folder = os.path.dirname(os.path.abspath(__file__)) + "/runtime/git_remote" -app_folder = os.path.dirname(os.path.abspath(__file__)) + "/runtime/git_remote" -apps_folder = os.path.dirname(os.path.abspath(__file__)) + "/apps" +configuration_file = os.path.join(base_dir, "config.yaml") +run_configuration_file = os.path.join(base_dir, "run_configuration.yaml") + +projects_cache_folder = os.path.join(base_dir, "runtime/projects_cache") +git_remote_folder = os.path.join(base_dir, "runtime/git_remote") + +apps_folder = os.path.join(base_dir, "apps") apps_gen_events_folder = os.path.join(apps_folder, "gen_ust_events") apps_preload_provider_folder = os.path.join(apps_folder, "preload_provider") -- 2.34.1