mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-31 16:39:59 +01:00
add commandline-parameter "--data-dir"
This commit is contained in:
@@ -8,5 +8,5 @@ rem Met la collection QET en lecture seule
|
||||
attrib +r elements/* /S /D
|
||||
|
||||
rem lance QElectroTech
|
||||
set command=bin\qelectrotech.exe -platform windows:fontengine=freetype --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ -style plastique %*
|
||||
set command=bin\qelectrotech.exe -platform windows:fontengine=freetype --common-elements-dir=elements/ --common-tbt-dir=titleblocks/ --lang-dir=lang/ --config-dir=conf/ --data-dir=conf/ -style plastique %*
|
||||
@start %command%
|
||||
|
||||
@@ -7,6 +7,7 @@ QET_EXE=$(readlink -f "${current_dir}/../qelectrotech")
|
||||
QET_ELEMENTS_DIR=$(readlink -f "${current_dir}/../elements/")
|
||||
QET_TBT_DIR=$(readlink -f "${current_dir}/../titleblocks/")
|
||||
QET_CONFIG_DIR=""
|
||||
QET_DATA_DIR=""
|
||||
QET_LANG_DIR=$(readlink -f "${current_dir}/../lang/")
|
||||
# REDEFINE_LANG="es"
|
||||
|
||||
@@ -31,6 +32,10 @@ if [ -d "${QET_CONFIG_DIR}" ]; then
|
||||
OPTIONS="${OPTIONS} --config-dir=${QET_CONFIG_DIR}"
|
||||
fi
|
||||
|
||||
if [ -d "${QET_DATA_DIR}" ]; then
|
||||
OPTIONS="${OPTIONS} --data-dir=${QET_DATA_DIR}"
|
||||
fi
|
||||
|
||||
if [ -d "${QET_LANG_DIR}" ]; then
|
||||
OPTIONS="${OPTIONS} --lang-dir=${QET_LANG_DIR}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user