Skip to content

Commit

Permalink
Jep 3.7.1 simple test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
PyjaErskell committed Jun 29, 2021
1 parent 6af3b61 commit f5ee51f
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@ECHO OFF
SETLOCAL

SET __SAC_KAPA_HM=C:\ProgramData\Bichon Frise\Kapa
SET __SAC_JAVA_HM=%__SAC_KAPA_HM%\19.11.01\Vindue\x64\Amazon\Corretto\8.232.09.1
SET __SAC_PYTHON_HM=%__SAC_KAPA_HM%\19.01.22\Vindue\x64\Anaconda\5.1.0
SET __SAC_JEP_PN=%__SAC_PYTHON_HM%\Lib\site-packages\jep
SET __SAC_JEP_JAR_FN=%__SAC_JEP_PN%\jep-3.7.1.jar

SET PYTHONHOME=%__SAC_PYTHON_HM%
SET PATH=%PYTHONHOME%;%SystemRoot%\System32

SET __SAC_ARGS=%*
IF "%__SAC_ARGS%"=="" (
SET __SAC_ARGS="%__SAC_JEP_PN%\console.py"
)

"%__SAC_JAVA_HM%\bin\java.exe" -classpath "%__SAC_JEP_JAR_FN%" -Djava.library.path="%__SAC_JEP_PN%" jep.Run %__SAC_ARGS%
16 changes: 16 additions & 0 deletions Pyja-20.09.22/Pyja/20.09.22/Salak/Jep/3.7.1/190101-1445-hello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import jep
import platform
from java.lang import System

def gf_jcls (x_it) : return jep .findClass (x_it)

CjArrayList = gf_jcls ('java.util.ArrayList')

def gf_2ja ( * x_args ) : # to (j)ava (a)rray
fu_al = CjArrayList ()
for bu2_it in x_args : fu_al .add (bu2_it)
return fu_al .toArray ()

print ( 'Java version (자바 버전) => ' + System .getProperty ("java.version") )
System.out .printf ( 'Python version (파이썬 버전) => %s\n', gf_2ja ( platform .python_version () ) )
System.out .println ( "Hello Python (안녕 파이썬) !!!" )

0 comments on commit f5ee51f

Please sign in to comment.