Skip to content

Commit

Permalink
Windows os module is extremely particular about slashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
seisatsu committed Oct 17, 2016
1 parent 7a8ed1a commit f0a2e5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 55 deletions.
54 changes: 0 additions & 54 deletions config.windows.json

This file was deleted.

2 changes: 1 addition & 1 deletion driftwood.bat
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@ECHO OFF
python src config.windows.json
python src --self src --root data --path test
2 changes: 2 additions & 0 deletions src/pathmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def __init__(self, driftwood):
self.__vfs = {}

self.__root = self.driftwood.config["path"]["root"] # Path root.
if not self.__root.endswith('/'): # Another stupid Windows hack.
self.__root += '/'
self.__path = [self.driftwood.config["path"]["self"]] # Start with base module.

if self.driftwood.config["path"]["path"]:
Expand Down

0 comments on commit f0a2e5c

Please sign in to comment.