From: Jeff E. <JEm...@lg...> - 2004-09-08 15:04:59
|
The file suffix is hardwired in the import implementation. If you rename foo.py to foo.jy, you will no longer be able to "import foo". >Am Mittwoch, 25. August 2004 05:23 schrieb Robert: >> Could Jython files have a ".jy" suffix instead of ".py"? Or is Jython >> sufficiently like Python code that it doesn't matter? > >You can name them as you like - if it helps you. The extension is only needed=20 >on windows for file-type distinction, and I think it shouldn't be too hard to=20 >register .jy to the jython interpreter. |