From: Jonathan Rajotte Date: Tue, 31 Oct 2017 15:26:38 +0000 (-0400) Subject: Use os.path.join X-Git-Url: http://git.efficios.com/?p=deliverable%2Flttng-ivc.git;a=commitdiff_plain;h=494bd6b94202022e56b3615636966cf51230bb75 Use os.path.join Signed-off-by: Jonathan Rajotte --- 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")