System Information
Operating system: Darwin-20.4.0-x86_64-i386-64bit 64 Bits
Graphics card: AMD Radeon Pro 5500M OpenGL Engine ATI Technologies Inc. 4.1 ATI-4.4.17
Blender Version
Broken: version: 2.92.0, branch: master, commit date: 2021-02-24 16:25, hash: rB02948a2cab44
Worked: (newest version of Blender that worked as expected)
Short description of error
file path from the script editor prints different path such as .blend instead of .py file...
Exact steps for others to reproduce the error
import bpy
print ('dirname', bpy.path.abspath(file))
dirname /Users/lukas/Documents/blender-love/JOB/blender-blend-job/blend-job_11_cat_no_drivers.blend/python_script_35_menu.py
print('dirname: ', os.path.dirname(file))
dirname /Users/lukas/Documents/blender-love/JOB/blender-blend-job/blend-job_11_cat_no_drivers.blend
Is that a bug or am I doing something wrong?
Many thanks.