Can anyone show me how can i find the path of the working folder. I am trying to make a code in which i inted to create a file.txt . The only problem is that if i dont specify the path I creates it in the blender source code folder and the in the folder where my objects are.
I tryed bpy.path, but it's not good.
A.
Path
Moderators: jesterKing, stiv
should be the working dir:
>>> os.getcwd()
'C:\\Program Files\\Blender Foundation\\Blender'
>>> os.path.dirname(bpy.app.binary_path)
'C:\\Program Files\\Blender Foundation\\Blender'
>>> os.path.dirname(sys.argv[0])
'C:\\Program Files\\Blender Foundation\\Blender'
or one of these?
bpy.utils.script_paths()
>>> os.getcwd()
'C:\\Program Files\\Blender Foundation\\Blender'
>>> os.path.dirname(bpy.app.binary_path)
'C:\\Program Files\\Blender Foundation\\Blender'
>>> os.path.dirname(sys.argv[0])
'C:\\Program Files\\Blender Foundation\\Blender'
or one of these?
bpy.utils.script_paths()
I'm sitting, waiting, wishing, building Blender in superstition...