Wesnoth as subprocess in python (wmlparser3.py)

Discussion of all aspects of the game engine, including development of new and existing features.

Moderators: Forum Moderators, Developers

Post Reply
Smok
Posts: 50
Joined: June 14th, 2016, 11:52 am

Wesnoth as subprocess in python (wmlparser3.py)

Post by Smok » March 17th, 2017, 8:03 am

I use wmlparser3.py tool i python. When i try parse file with it, this error apperas:
2017-03-17_08h57_11.jpg
2017-03-17_08h57_11.jpg (30.69 KiB) Viewed 774 times
I use stable version of game with userdata folder stored in instalation path. Btw wesnoth creates empty userdata forler in my python program folder. What shoud I do about it?

EDIT: There is no problem if user data is located in Documents.

User avatar
Celtic_Minstrel
Developer
Posts: 1140
Joined: August 3rd, 2012, 11:26 pm
Contact:

Re: Wesnoth as subprocess in python (wmlparser3.py)

Post by Celtic_Minstrel » May 3rd, 2017, 12:18 am

Have you even looked at it? You can pass the userdata path when constructing the parser object; or if using it from the command-line, there's an argument to wmlparser3.py that sets it.
Author of The Black Cross of Aleron campaign and Default++ era.
Maintainer of Steelhive.

User avatar
Sapient
Developer
Posts: 4430
Joined: November 26th, 2005, 7:41 am
Contact:

Re: Wesnoth as subprocess in python (wmlparser3.py)

Post by Sapient » May 3rd, 2017, 4:02 am

It might help if you showed us the complete command-line instruction you are using to invoke the parser.
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."

Post Reply