RustPython/RustPython
sys.safe_path with Command line parameter -P and environment variable `PYTHONSAFEPATH`
開放
#4,541 建立於 2023年2月21日
C-compatgood first issue
倉庫指標
- 星標
- (22,047 顆星)
- PR 合併指標
- (平均合併 2天 6小時) (30 天內合併 172 個 PR)
描述
https://docs.python.org/3/using/cmdline.html#cmdoption-P
- add sys.flags.safe_path #4568
- add command line parameter
-Pto set flag - use environment variable
PYTHONSAFEPATHto set flag - actual implementation of safe_path
I didn't check the actual implementation, but other 3 tasks are easy tasks