diff --git a/data/tools/GUI.pyw b/data/tools/GUI.pyw index 6f93f70cf5af..fce3807b304d 100755 --- a/data/tools/GUI.pyw +++ b/data/tools/GUI.pyw @@ -40,7 +40,6 @@ APP_DIR,APP_NAME=os.path.split(os.path.realpath(sys.argv[0])) WESNOTH_ROOT_DIR=os.sep.join(APP_DIR.split(os.sep)[:-2]) # pop out "data" and "tools" WESNOTH_DATA_DIR=os.path.join(WESNOTH_ROOT_DIR,"data") WESNOTH_CORE_DIR=os.path.normpath(os.path.join(WESNOTH_DATA_DIR,"core")) -WMLXGETTEXT_DIR=os.path.normpath(os.path.join(WESNOTH_ROOT_DIR,"utils")) def wrap_elem(line): """If the supplied line contains spaces, return it wrapped between double quotes""" @@ -1294,7 +1293,7 @@ wmlindent will be run on the Wesnoth core directory""") def on_run_wmlxgettext(self): # build the command line and add the path of the Python interpreter wmlxgettext_command_string=[sys.executable] - wmlxgettext_command_string.append(os.path.join(WMLXGETTEXT_DIR,"wmlxgettext")) + wmlxgettext_command_string.append(os.path.join(APP_DIR,"wmlxgettext")) textdomain=self.wmlxgettext_tab.domain_variable.get() if textdomain: wmlxgettext_command_string.extend(["--domain",textdomain]) diff --git a/utils/pywmlx/__init__.py b/data/tools/pywmlx/__init__.py similarity index 100% rename from utils/pywmlx/__init__.py rename to data/tools/pywmlx/__init__.py diff --git a/utils/pywmlx/autof.py b/data/tools/pywmlx/autof.py similarity index 100% rename from utils/pywmlx/autof.py rename to data/tools/pywmlx/autof.py diff --git a/utils/pywmlx/nodemanip.py b/data/tools/pywmlx/nodemanip.py similarity index 100% rename from utils/pywmlx/nodemanip.py rename to data/tools/pywmlx/nodemanip.py diff --git a/utils/pywmlx/postring.py b/data/tools/pywmlx/postring.py similarity index 100% rename from utils/pywmlx/postring.py rename to data/tools/pywmlx/postring.py diff --git a/utils/pywmlx/state/__init__.py b/data/tools/pywmlx/state/__init__.py similarity index 100% rename from utils/pywmlx/state/__init__.py rename to data/tools/pywmlx/state/__init__.py diff --git a/utils/pywmlx/state/lua_states.py b/data/tools/pywmlx/state/lua_states.py similarity index 100% rename from utils/pywmlx/state/lua_states.py rename to data/tools/pywmlx/state/lua_states.py diff --git a/utils/pywmlx/state/machine.py b/data/tools/pywmlx/state/machine.py similarity index 100% rename from utils/pywmlx/state/machine.py rename to data/tools/pywmlx/state/machine.py diff --git a/utils/pywmlx/state/state.py b/data/tools/pywmlx/state/state.py similarity index 100% rename from utils/pywmlx/state/state.py rename to data/tools/pywmlx/state/state.py diff --git a/utils/pywmlx/state/wml_states.py b/data/tools/pywmlx/state/wml_states.py similarity index 100% rename from utils/pywmlx/state/wml_states.py rename to data/tools/pywmlx/state/wml_states.py diff --git a/utils/pywmlx/wmlerr.py b/data/tools/pywmlx/wmlerr.py similarity index 100% rename from utils/pywmlx/wmlerr.py rename to data/tools/pywmlx/wmlerr.py diff --git a/utils/wmlxgettext b/data/tools/wmlxgettext similarity index 100% rename from utils/wmlxgettext rename to data/tools/wmlxgettext diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 806bd2e8221c..ee249a63cc87 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -42,7 +42,7 @@ set(DOMAINS # If a source file has not GETTEXT_DOMAIN it belongs to this domain. set(DEFAULT_DOMAIN wesnoth) -set(WMLXGETTEXT ${PROJECT_SOURCE_DIR}/utils/wmlxgettext) +set(WMLXGETTEXT ${PROJECT_SOURCE_DIR}/data/tools/wmlxgettext) ############ pot update. ########### diff --git a/po/SConscript b/po/SConscript index 86b6e3f61964..02c8ec52a2bd 100644 --- a/po/SConscript +++ b/po/SConscript @@ -73,7 +73,7 @@ if "pot-update" in COMMAND_LINE_TARGETS: wml_pot = env.Command( join(domain, domain + ".wml.pot"), cfgs, - "utils/wmlxgettext --directory=. --domain=%s $SOURCES -o $TARGET" % domain + "data/tools/wmlxgettext --directory=. --domain=%s $SOURCES -o $TARGET" % domain ) new_pot = str(pot) + ".new"