import bpy

# install and activate `emboss plane`
bpy.ops.wm.addon_install(filepath='emboss_plane.py')
bpy.ops.wm.addon_enable(module='emboss_plane')

# install and activate `name plate`
bpy.ops.wm.addon_install(filepath='name_plate.py')
bpy.ops.wm.addon_enable(module='name_plate')

# save user preferences
bpy.ops.wm.save_userpref()

import bpy
import os

# get current directory
current_dir = os.getcwd()

# install and activate `emboss plane`
emboss_plane_filepath = os.path.join(current_dir, 'emboss_plane.py')
bpy.ops.wm.addon_install(filepath=emboss_plane_filepath)
bpy.ops.wm.addon_enable(module='emboss_plane')

# install and activate `name plate`
name_plate_filepath = os.path.join(current_dir, 'name_plate.py')
bpy.ops.wm.addon_install(filepath=name_plate_filepath)
bpy.ops.wm.addon_enable(module='name_plate')

# save user preferences
bpy.ops.wm.save_userpref()

Update install script with full file paths
Update install script with full file paths

This is needed to make the script run on Windows.  The `os` package is 
used to make sure it will run under any OS.

  import bpy
+ import os
+ 
+ # get current directory
+ current_dir = os.getcwd()
  
  # install and activate `emboss plane`
+ emboss_plane_filepath = os.path.join(current_dir, 'emboss_plane.py')
- bpy.ops.wm.addon_install(filepath='emboss_plane.py')
+ bpy.ops.wm.addon_install(filepath=emboss_plane_filepath)
  bpy.ops.wm.addon_enable(module='emboss_plane')
  
  # install and activate `name plate`
+ name_plate_filepath = os.path.join(current_dir, 'name_plate.py')
- bpy.ops.wm.addon_install(filepath='name_plate.py')
+ bpy.ops.wm.addon_install(filepath=name_plate_filepath)
  bpy.ops.wm.addon_enable(module='name_plate')
  
  # save user preferences
  bpy.ops.wm.save_userpref()
  
Update install script with full file paths
## Code Before:
import bpy

# install and activate `emboss plane`
bpy.ops.wm.addon_install(filepath='emboss_plane.py')
bpy.ops.wm.addon_enable(module='emboss_plane')

# install and activate `name plate`
bpy.ops.wm.addon_install(filepath='name_plate.py')
bpy.ops.wm.addon_enable(module='name_plate')

# save user preferences
bpy.ops.wm.save_userpref()

## Instruction:
Update install script with full file paths
## Code After:
import bpy
import os

# get current directory
current_dir = os.getcwd()

# install and activate `emboss plane`
emboss_plane_filepath = os.path.join(current_dir, 'emboss_plane.py')
bpy.ops.wm.addon_install(filepath=emboss_plane_filepath)
bpy.ops.wm.addon_enable(module='emboss_plane')

# install and activate `name plate`
name_plate_filepath = os.path.join(current_dir, 'name_plate.py')
bpy.ops.wm.addon_install(filepath=name_plate_filepath)
bpy.ops.wm.addon_enable(module='name_plate')

# save user preferences
bpy.ops.wm.save_userpref()
