I've recently been working on RAPT's keeplist.txt and blacklist.txt, which convert pattern strings into regular expressions based on specific rules. However, the path obtained by using os.path.join under Windows contains backslashes
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\tchinese\script.rpyc
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\ukrainian\options.rpyc
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\ukrainian\screens.rpyc
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\ukrainian\common.rpyc
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\ukrainian\script.rpyc
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\ukrainian
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\japanese
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\schinese
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\tchinese
D:\Program Files\renpy-8.1.3-sdk\rapt\project/app/src/main/assets\game\tl\russian
which will cause problems for regex matching.
For example, if I want to block the game/dlc/chapter40 folder, directly filling in blocklist.txt will not match. I can only use the wildcard writing method of game**dlc**chapter40.
I've recently been working on RAPT's
keeplist.txtandblacklist.txt, which convert pattern strings into regular expressions based on specific rules. However, the path obtained by usingos.path.joinunder Windows contains backslasheswhich will cause problems for regex matching.
For example, if I want to block the
game/dlc/chapter40folder, directly filling inblocklist.txtwill not match. I can only use the wildcard writing method ofgame**dlc**chapter40.