Packs for Spark
Published: February 8, 2021 - 11:39 AM
Hello, I'm new to WAPT and Python
I use the Spark instant messaging client in my company, and I would like to deploy Spark using WAPT.
I created the package for version 2.9.4, installation and uninstallation which works very well.
I would also like to copy a config file into "user_appdata".
And that's where I need a helping hand.
I would like to verify that the Spark folder exists in the user's Roaming folder.
If so, I'll copy my file into it.
If not, I create the Spark folder and copy my file into it.
Here are the lines of code I created, but it doesn't work, something must be missing, but I can't see what.
Thank you in advance for your help.
WAPT Server version: 1.8.2
WAPT Agent version: 1.8.2.7334
WAPT Setup version: 1.8.2.7334
WAPT Deploy version: 1.8.2.7334
I use the Spark instant messaging client in my company, and I would like to deploy Spark using WAPT.
I created the package for version 2.9.4, installation and uninstallation which works very well.
I would also like to copy a config file into "user_appdata".
And that's where I need a helping hand.
I would like to verify that the Spark folder exists in the user's Roaming folder.
If so, I'll copy my file into it.
If not, I create the Spark folder and copy my file into it.
Here are the lines of code I created, but it doesn't work, something must be missing, but I can't see what.
Code: Select all
def session_setup():
user_config_dir = makepath(user_appdata(),'Spark')
Spark_Config = 'spark.properties'
if not isdir(user_config_dir):
mkdirs(user_config_dir)
filecopyto (Spark_Config,user_config_dir)
if isdir(user_config_dir):
filecopyto (Spark_Config,user_config_dir)
WAPT Server version: 1.8.2
WAPT Agent version: 1.8.2.7334
WAPT Setup version: 1.8.2.7334
WAPT Deploy version: 1.8.2.7334