[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [ease-dev] Accessing EASE module from Python module
|
- From: Vinod Appu <vinod.appu@xxxxxxxxxxx>
- Date: Mon, 5 Oct 2020 04:21:18 +0000
- Accept-language: en-IN, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ashling.com; dmarc=pass action=none header.from=ashling.com; dkim=pass header.d=ashling.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yKEr4Pk4u4XAeQ51iRfYucD6yf0dKShXFZ49leLkuTA=; b=gpqyoRcv9pKM4EtiCEpMMsBhLQv6nmm7J0FKJoctxiDJZhe+2D6hnagJd1/z54ScZ5WbTi4KAPJkz2ww/pj+agr+TwELY2KC7eDWou6mUQwAbzzHA7rr1qgljTCOah3/E4HwnqVZP/JL8h/1yNzIrF3SjB80vSzhEMRemXhcmgui5/f1OfNGITsA2NHMErSk6LMftsHFxSkS05Bo1bqMPCQjj+OT1YZ1yLll7Z7y2IbNmj53Rhqfvd5WTz4taJ5l5ffThNeszVjhCATMI3VsngtbxoA7Tb4fJCRdJD6VqEwmSnR3e7/m7AscQx+ok/JDhxWQzf0m5XQJoRQo9BNs+Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y0INv4T6XhYfu9J+zqeStOrPoq0lqhz2qgN7ml/OQ4osi71W/IhxP5RFGImEkRhUGaW8LFAQwBSFeaj4DiKVhyAFkTDTidgltywQf5WL3rzXAclw6fUYkxUVukPD0w6vaG4Hy2cCA9ZU2/zvXbCc6m8Ahr16gU4Hm6AsIaW93beFJM7S3QKv4axgksebhP35Dl6SrxIx8L7v0o4/bxfccrGA+Az++O8Tsf5F1B2qGRaAjWayXjbZVB5las0npaNrYwR0Oc/aJ/uTphPKh1NSqg5AdcBR45ixOCrrN1g/K20k6EhrMFvuI4Ly1BnnO88+zm28Qn1O/TmOVtN6/t77pA==
- Delivered-to: ease-dev@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/ease-dev>
- List-help: <mailto:ease-dev-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/ease-dev>, <mailto:ease-dev-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/ease-dev>, <mailto:ease-dev-request@eclipse.org?subject=unsubscribe>
- Thread-index: AdaW8wHr+vrymFldTRSHJke7dPFASwAxYxOAAMV/IDA=
- Thread-topic: [ease-dev] Accessing EASE module from Python module
Hi Christian,
Thanks for the reply, it covers almost all my doubts.
Is there any performance metrics for EASE + Python/ EASE + Jython/ EASE + Javascript ...?
~Vinod
-----Original Message-----
From: ease-dev-bounces@xxxxxxxxxxx <ease-dev-bounces@xxxxxxxxxxx> On Behalf Of Christian Pontesegger
Sent: Thursday, October 1, 2020 11:33 AM
To: ease developer discussions <ease-dev@xxxxxxxxxxx>
Subject: Re: [ease-dev] Accessing EASE module from Python module
Hi Vinod,
when we run a python script, EASE injects some methods into the global namespace. I am not a python expert, but to my knowledge modules are separated from each other. So I guess whatever we push to the main module is not visible for other modules.
As you may also use import statements instead of loadModule():
loadModule("/some/module")
import eclipse.some.module as my_module
you may try to import the EASE module in main and pass it on to your module as a parameter.
Just generally I am not sure if it is a good idea to build python modules on top of EASE modules. Switching between python and Java always comes with high performance costs. So you want to keep these calls on a minimum level. Therefore I would not recommend to start building frameworks on top of these modules.
best regards
Christian
>
> I'm trying to call loadModule(<EASE module>) from a python module (say
> test_module.py). test_module.py is loaded by Main.py.
> Main.py is executed by EASE py4j engine and I'm getting "NameError:
> name 'loadModule' is not defined". If I'm using loadModule(<EASE
> module>) from Main.py, it's working fine.
> I want to use test_module itself to call loadModule(<EASE module>),
> please guide me here.
>
_______________________________________________
ease-dev mailing list
ease-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/ease-dev