#!/usr/bin/python3
# encoding: utf8
#
# Copyright 2012-2013 Alejandro Autalan
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 3, as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranties of
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
# PURPOSE.  See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with this program.  If not, see <http://www.gnu.org/licenses/>.
#
# For further info, check  http://pygubu.web.here

"""Script to run Pygubu."""

import platform
import sys
import os
from os.path import abspath, dirname, realpath

try:
    import pygubu
except ImportError as e:
    #
    # For develop mode only
    #
    project_basedir = abspath(dirname(dirname(realpath(sys.argv[0]))))
    if project_basedir not in sys.path:
        sys.path.insert(0, project_basedir)
    
    # try to import again
    import pygubu

from pygubudesigner import main

# first of all, show the versions
print("python version: {0} on {1}".format(platform.python_version(), sys.platform))
print("pygubu version: {0}".format(pygubu.__version__))

main.start_pygubu()

