mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
Previously, it relied on the path the script was launched with to detect and exclude "helpers" root from the results. Now it uses __file__ to find the directory it resides in. GitOrigin-RevId: fd3edce1a6a33fd82607953f75cafa5c558373cd
9 lines
181 B
Python
9 lines
181 B
Python
import os.path
|
|
import sys
|
|
|
|
_helpers_root = os.path.dirname(os.path.abspath(__file__))
|
|
|
|
for root in sys.path:
|
|
if root != _helpers_root and root != os.curdir:
|
|
print(root)
|