Ejemplo n.º 1
0
__BUILDTIME__="27/05/2017 10:21:09"
# debug mode
DEBUGMODE=False


from Core import CorePlugin
from Core import Settings
from Core.Libs import Logger

import sys
import sip
import json
import os

# adding missing folders
if not os.path.exists( "%s/Core/Logs/" % Settings.getDirExec() ):
    os.mkdir( "%s/Core/Logs" % Settings.getDirExec() )
    
try:
    from PyQt4.QtGui import (QApplication)
except ImportError:
    from PyQt5.QtWidgets import (QApplication)
    
CONFIG_JSON = None
with open( "%s/config.json" % (Settings.getDirExec()) ) as f:
    CONFIG_RAW = f.read()
CONFIG_JSON = json.loads(CONFIG_RAW)

if CONFIG_JSON is None:
    sys.exit(-1)
        
Ejemplo n.º 2
0
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301 USA
#
# Author: Denis Machard
# Contact: [email protected]
# Website: www.extensiveautomation.org
# -------------------------------------------------------------------

from Core import ConfigureExe
from Core import BuildWin
from Core import Settings
from Core.Libs import Logger

import json

# read the config
CONFIG = None
with open("%s/config.json" % (Settings.getDirExec())) as f:
    CONFIG_RAW = f.read()
CONFIG = json.loads(CONFIG_RAW)

# start the compilation
ConfigureExe.run()
BuildWin.run(pluginName=CONFIG["plugin"]["name"],
             pluginVersion=CONFIG["plugin"]["version"])