Returns the absolute directory of the current script entry point. Returns: Absolute directory path derived from `sys.argv[0]`.
()
| 151 | |
| 152 | |
| 153 | def get_current_script_dir(): |
| 154 | """ |
| 155 | Returns the absolute directory of the current script entry point. |
| 156 | |
| 157 | Returns: |
| 158 | Absolute directory path derived from `sys.argv[0]`. |
| 159 | """ |
| 160 | pathname = os.path.dirname(sys.argv[0]) |
| 161 | return os.path.abspath(pathname) |
no outgoing calls
no test coverage detected