File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,14 @@ def createPlugins():
22
22
23
23
# We are going to list all game plugins:
24
24
curpath = os .path .abspath (os .path .dirname (__file__ ))
25
+ escaped_games_path = glob .escape (os .path .join (curpath , "games" ))
25
26
26
27
# List all the .ini files:
27
- for file in glob .glob (os .path .join (curpath , "games" , "*.ini" )):
28
+ for file in glob .glob (os .path .join (escaped_games_path , "*.ini" )):
28
29
game_plugins .append (BasicIniGame (file ))
29
30
30
31
# List all the python plugins:
31
- for file in glob .glob (os .path .join (curpath , "games" , "*.py" )):
32
+ for file in glob .glob (os .path .join (escaped_games_path , "*.py" )):
32
33
module_p = os .path .relpath (file , os .path .join (curpath , "games" ))
33
34
if module_p == "__init__.py" :
34
35
continue
You can’t perform that action at this time.
0 commit comments