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

Wesnoth as subprocess in python (wmlparser3.py)

Postby 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 323 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.
Smok
 
Posts: 49
Joined: June 14th, 2016, 11:52 am

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

Postby 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
Celtic_Minstrel
Developer
 
Posts: 753
Joined: August 3rd, 2012, 11:26 pm

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

Postby 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."
User avatar
Sapient
Developer
 
Posts: 4359
Joined: November 26th, 2005, 7:41 am


Return to Coder’s Corner

Who is online

Users browsing this forum: No registered users and 3 guests