From a1f38265ccaf277cc379264d8213eedbcc6e50b9 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 11 Jun 2022 00:26:18 +0200 Subject: [PATCH] Make the app SConstruct script callable from an app's directory. --- misc/scripts_app/SConstruct | 3 +++ 1 file changed, 3 insertions(+) diff --git a/misc/scripts_app/SConstruct b/misc/scripts_app/SConstruct index 4abba6bf0..f03c3aaca 100644 --- a/misc/scripts_app/SConstruct +++ b/misc/scripts_app/SConstruct @@ -32,6 +32,9 @@ import traceback import module_config +# If you want to use this script directly from a project directory remove this line: +os.chdir(os.path.abspath(os.getcwd() + "/../../../")) + repository_index = 0 module_clone_path = '/modules/' clone_command = 'git clone {0} {1}'