Post #1322: ![](https://blenderartists.org/user_avatar/blenderartists.org/chombor/48/39179_2

📋 Metadata

  • Author: roaoao
  • Date: 2018-04-11 02:43:04
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_01321

🏷️ Tags

python-scripting intermediate solved

  • Python Scripting
  • Macro Editor

💬 Content

chombor:

Is it possible to make execute path a little bit more flexible? Something like this

execute_script("<i>os.path.join(os.environ['ONEDRIVE'], </i>"Code/addons/addon.py"<i>)</i>")

Hi, check the code. Try to remove double quotes:

execute_script(<i>os.path.join(os.environ['ONEDRIVE'], </i>"Code/addons/addon.py"<i>)</i>)

🔗 View on Blender Artists