Call Zennoposter From Python

Stroks

Client
Регистрация
09.02.2012
Сообщения
219
Благодарностей
14
Баллы
18
Is it possible to call zennoposter to execute a script from python?

Because i is much easier to do programming tasks in python than in ZP.

Thanks
 

Stroks

Client
Регистрация
09.02.2012
Сообщения
219
Благодарностей
14
Баллы
18
Or use python in code creator?
 

Stroks

Client
Регистрация
09.02.2012
Сообщения
219
Благодарностей
14
Баллы
18
Never mind I can use txt files to comunicate from python to Zenno.
 

Lord_Alfred

Client
Регистрация
09.10.2015
Сообщения
3 916
Благодарностей
3 856
Баллы
113
You can run zennoposter task (aslo named "project") from .bat file: open ZP, select your project and click right mouse button on project title, you can view option like as "Create .bat file"
 
  • Спасибо
Реакции: Shershyaga

Stroks

Client
Регистрация
09.02.2012
Сообщения
219
Благодарностей
14
Баллы
18
Thanks

That's is a pretty good solution in general case, but the problem is that I have to also pass varaables from python to zennoposter. I can do this using txt files but then there is no so much point in creating the bat files in the first place.
 

Lord_Alfred

Client
Регистрация
09.10.2015
Сообщения
3 916
Благодарностей
3 856
Баллы
113
You can put variables in database (mysql, sqlite or other) and get this from zennoposter (use "Database" action in "Data" group).
 

Stroks

Client
Регистрация
09.02.2012
Сообщения
219
Благодарностей
14
Баллы
18
Well I guess it is easier with txt files, because there is less chance something is going to get overwritten, but it is always nice to have an option more.
 

zenfreak

Client
Регистрация
21.08.2013
Сообщения
249
Благодарностей
11
Баллы
18
@Stroks I had the same problem as you and ended up learning C#. I guess C# and Python are everything you'll ever need when it come to programming.
 

Stroks

Client
Регистрация
09.02.2012
Сообщения
219
Благодарностей
14
Баллы
18
@zenfreak I agree that C# is the most usefull, however writting in Python is much much faster and easier. And also there are a lot more free modules for Python than for C#.
 

nycdude

Пользователь
Регистрация
06.05.2018
Сообщения
57
Благодарностей
1
Баллы
8

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)