Post #1891: ![](https://blenderartists.org/user_avatar/blenderartists.org/rbx775/48/460868_2

πŸ“‹ Metadata

🏷️ Tags

python-scripting intermediate solved

  • Python Scripting
  • Macro Editor

πŸ’¬ Content

rbx775:

Though I wonder if there’s a way for referencing filepath-keywords in the execute_script command? like %AppData%

Try to use expandvars function:

execute_script(os.path.expandvars("%AppData%/Blender Foundation/Blender/2.79/scripts/custom_Scripts/SmartDelete.py"))

❀️ 2 likes


πŸ”— View on Blender Artists