コード例 #1
3
# Do not put some encoding here
DEBUG = True
import os
execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile", "startup.py"))
from pymodelio.core.env import PyModelioEnv
PyModelioEnv.execute(
    'oclscribe.macro_generate_ocl',[],DEBUG)




コード例 #2
1
# Do not put some encoding here
DEBUG = True
import os

execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile",
                 "startup.py"))
from pymodelio.core.env import PyModelioEnv
modules = []
# PyModelioEnv.execute(
#    'sheetscribe.tests.test_poi.macro_poi_test',[],DEBUG)
# PyModelioEnv.execute(
#    'sheetscribe.tests.test_googlesheet.macro_googlesheet',[],DEBUG)
modules = ('sheetscribe.ooss', 'sheetscribe.snapshot', 'sheetscribe.tables',
    'sheetscribe.uml')
PyModelioEnv.execute(
    'sheetscribe.uml2ooss.macro_uml2ooss',modules,DEBUG)
コード例 #3
0
# Do not put some encoding here
DEBUG = True
import os

execfile(os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile", "startup.py"))
from pymodelio.core.env import PyModelioEnv

PyModelioEnv.execute("oclscribe.macro_add_operation_definition", ["oclscribe.profile"], DEBUG)
コード例 #4
0
# Do not put some encoding here
DEBUG = True
import os

execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile",
                 "startup.py"))
from pymodelio.core.env import PyModelioEnv
#modules = []
# PyModelioEnv.execute(
#    'sheetscribe.tests.test_poi.macro_poi_test',[],DEBUG)
# PyModelioEnv.execute(
#    'sheetscribe.tests.test_googlesheet.macro_googlesheet',[],DEBUG)
modules = (
    'pymodeliolocal.graph',
    'pymodeliolocal.graph.browser',
    'pymodeliolocal.graph.html',
    'pymodeliolocal.graph.svg',
    'graphscribe',
)
PyModelioEnv.execute(
    'graphscribe.macro_main', modules, DEBUG)
コード例 #5
0
        sys.path.insert(0,framework_commons)
    print "Starting pymodelio.core.env.PyModelioEnv from path %s" \
          % framework_commons
    from pymodelio.core.env import PyModelioEnv

    #--------------------------------------------------------------------------
    # Define global functions that will enable accessing modelio global
    # variable from modules at any time.
    #--------------------------------------------------------------------------

    if WITH_MODELIO:
        from pyalaocl import asSeq
        def getSelectedElements():
            global selectedElements
            return asSeq(selectedElements)
        PyModelioEnv.addGlobalFunction(getSelectedElements)

        def getModelingSession():
            global modelingSession
            return modelingSession
        PyModelioEnv.addGlobalFunction(getModelingSession)

        def getSelection():
            global selection
            return asSeq(selection)
        PyModelioEnv.addGlobalFunction(getModelingSession)


    #--------------------------------------------------------------------------
    # Import modules to inject code and for convenience in the python console
    #--------------------------------------------------------------------------
コード例 #6
0
ファイル: __CheckScribe.py プロジェクト: escribis/.modelio
# Do not put some encoding here
DEBUG=True
import os

execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile",
                 "startup.py"))
modules=[
   'checkscribe'
]
from pymodelio.core.env import PyModelioEnv
PyModelioEnv.execute('checkscribe.macro_check',modules,DEBUG)
コード例 #7
0
# Do not put some encoding here
DEBUG=True
import os

execfile(
    os.path.join(os.path.expanduser("~"), ".modelio", "pymodelioprofile",
                 "startup.py"))
modules=[
   'metascribe.explorer',
   'metascribe.onlinepyscript',
   'metascribe.virtual',
   'metascribe.webdoc',
   'metascribe.webpublisher',
   'metascribe.images',
   'metascribe.introspection',
   'metascribe.explorer']
from pymodelio.core.env import PyModelioEnv
PyModelioEnv.execute('metascribe.macro_coexplorer',modules,DEBUG)
from metascribe.explorer import explore,exp,show