yuki-koyama / blender-cli-rendering

Blender Python scripts for rendering images directly from command-line interface
GNU General Public License v3.0
733 stars 107 forks source link

Use absolute paths #14

Closed yuki-koyama closed 4 years ago

yuki-koyama commented 5 years ago

The current scripts implicitly assume that they are called from the top directory of this repository. Instead, it should use the following code to obtain the absolute path of the directory:

os.path.dirname(os.path.abspath(__file__))