mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-12-06 21:43:38 +07:00
Default workdir for PyCharm is its installation folder. Always never should it be used as working dir for script it runs. If user does not provide working dir, we must guess it. #getWorkingDirSafe() does this guess. It takes directory for script, directory for test or simply first module root. See its javadoc and usage for details.
4 lines
74 B
Python
4 lines
74 B
Python
import os
|
|
|
|
def test_test():
|
|
print("Directory {0}".format(os.getcwd())) |