From da55eac072ece343b8e18fbcef6631cc353287ae Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Mon, 17 Apr 2017 19:11:30 +0300 Subject: [PATCH] Update 'new-locale.py' script to handle 'devscripts' --- devscripts/new-locale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devscripts/new-locale.py b/devscripts/new-locale.py index 0f2e872..88065bb 100644 --- a/devscripts/new-locale.py +++ b/devscripts/new-locale.py @@ -33,8 +33,8 @@ def output(msg): def manage_directory(): - """Allow script calls outside the 'locale_build' dir.""" - if os.path.basename(os.getcwd()) == "locale_build": + """Allow script calls from the 'devscripts' dir and the package dir.""" + if os.path.basename(os.getcwd()) == "devscripts": os.chdir("..")