Use os.path.join
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 31 Oct 2017 15:26:38 +0000 (11:26 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Tue, 31 Oct 2017 15:26:38 +0000 (11:26 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
lttng_ivc/settings.py

index adfa6b5493c363a15d4f6a694387f978cbf0792e..7c9e3e43b1d9f81028733f53f77fa795bec46e58 100644 (file)
@@ -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")
 
This page took 0.023443 seconds and 5 git commands to generate.