I'm trying to use session_setup to copy a SketchUp plugin to the users' appdata/roaming directory. But the files are never copied when the session starts. If I manually run the command "wapt-get session-setup dst-sketchup-make", I get:
Configuring dst-sketchup-make ... Done
Here is my session_setup code in setup.py:
Code: Select all
def session_setup():
# Copie des fichiers de l'extension SPL vers C:\Users\<USER>\AppData\Roaming\SketchUp\SketchUp 2017\SketchUp\Plugins
if not isdir(makepath(user_appdata(),'SketchUp','SketchUp 2017','SketchUp','Plugins')):
print('creation du dossier Plugins')
mkdirs(makepath(user_appdata(),'SketchUp','SketchUp 2017','SketchUp','Plugins'))
for fn in glob.glob('sketchup-stl-2.1.6/*'):
filecopyto(fn,makepath(user_appdata(),'SketchUp','SketchUp 2017','SketchUp','Plugins'))
print('Copie des fichiers du plugin SPL Sketchup')