문제

Looks like function os.chdir() does not works for Jython, is there another way to switch of working directory in a Jython script ?

(Get the following error while running my script: OSError: [Errno 0] chdir not supported in Java)

Thanks in advance for any solution.

EDIT: Question title updated to match the solution. Tags too.

도움이 되었습니까?

해결책

What Grimmy asked make me think different about my original problem (thanks to you)

My goal is (was) to define a path to find local jython modules. And so the correct way is to update 'sys.path'.

Example:

sys.path.append(workingDirectory)

Problem solved. Thanks again Grimmy.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top