Wesnoth as subprocess in python (wmlparser3.py)

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

Moderator: Forum Moderators

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

Wesnoth as subprocess in python (wmlparser3.py)

Post by Smok »

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 3357 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: 2166
Joined: August 3rd, 2012, 11:26 pm
Location: Canada
Contact:

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

Post by Celtic_Minstrel »

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.
Former maintainer of Steelhive.
User avatar
Sapient
Inactive Developer
Posts: 4453
Joined: November 26th, 2005, 7:41 am
Contact:

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

Post by Sapient »

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