@ONLY
)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/SalomePyQt_MockUp.py DESTINATION lib/python)
- # Configure file utils.py
+ # Configure file slutils.py
SET(SALOME_INSTALL_PYTHON "lib/python"${PYTHON_VERSION}"/site-packages/salome")#This is to use the same variable as salome
configure_file(
- utils.py.in
- utils.py
+ slutils.py.in
+ slutils.py
@ONLY
)
- INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/utils.py DESTINATION lib/python)
+ INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/slutils.py DESTINATION lib/python)
ENDIF( (EXISTS $ENV{CONFIGURATION_ROOT_DIR}) AND (EXISTS $ENV{KERNEL_ROOT_DIR}) AND (EXISTS $ENV{GUI_ROOT_DIR}) )
ADD_SUBDIRECTORY(ui)
SET(SGPYQT_RES_DIR "${SALOME_INSTALL_RES}")
SALOME_CONFIGURE_FILE(../../SalomePyQt_MockUp.py.in mockup/SalomePyQt_MockUp.py)
-SALOME_CONFIGURE_FILE(../../utils.py.in utils.py)
+SALOME_CONFIGURE_FILE(../../slutils.py.in slutils.py)
SET(_bin_SCRIPTS
SOLVERLABGUI.py
SET(_lib_SCRIPTS
${GUI_lib_SCRIPTS}
${CMAKE_CURRENT_BINARY_DIR}/mockup/SalomePyQt_MockUp.py
- ${CMAKE_CURRENT_BINARY_DIR}/utils.py
+ ${CMAKE_CURRENT_BINARY_DIR}/slutils.py
)
SALOME_INSTALL_SCRIPTS("${_bin_SCRIPTS}" ${SALOME_INSTALL_SCRIPT_PYTHON})
--- /dev/null
+def completeResPath(fileName):
+ import os
+ subPath = "@SALOME_INSTALL_PYTHON@"
+ rd = os.environ.get("SOLVERLAB_ROOT_DIR", None)
+ if rd is None:
+ raise Exception("SOLVERLAB_ROOT_DIR is not defined!")
+ filePath = os.path.join(rd, subPath, fileName)
+ return filePath
# -*- coding: utf-8 -*-
from PyQt5 import QtWidgets, QtCore
from PyQt5.uic import loadUi
-from utils import completeResPath
+from slutils import completeResPath
import CoreFlows as cf
import cdmath as cm
+++ /dev/null
-def completeResPath(fileName):
- import os
- subPath = "@SALOME_INSTALL_PYTHON@"
- rd = os.environ.get("SOLVERLAB_ROOT_DIR", None)
- if rd is None:
- raise Exception("SOLVERLAB_ROOT_DIR is not defined!")
- filePath = os.path.join(rd, subPath, fileName)
- return filePath