From: Ype K. <yk...@xs...> - 2002-09-03 18:18:56
|
Alexey. On Tuesday 03 September 2002 19:28, you wrote: > I have read a book and it was recommended to use JY extension for Jytho= n > specific file, but it seems impossible to import them. Is it? There is a way to import .jy files: create a new module and exec the moduleName.jy file using the dictionary of the new module as the global namespace, and then register the module in sys.modules[moduleName] . But why do you use .jy files? Like cpython, jython imports the standard .py files. Regards, Ype |