Creating files in VN-directory

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
fletterman
Newbie
Posts: 1
Joined: Wed May 12, 2021 10:54 am
Contact:

Creating files in VN-directory

#1 Post by fletterman »

I'm trying to create files based on user-input to have them create extra scenario's for my VN but I'm having trouble getting the right path for those new files. When I try using "os.path.abspath(__file__)" I'm getting the path from the renpy-launcher folder instead of my VN that I'm running.

Anyone any idea how to fix this?

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], Kocker