Skip to content

Commit dac8d34

Browse files
authored
Merge pull request #13 from fernvenue/patch-1
Redirect PosixPath to WindowsPath on Windows.
2 parents 6d249c7 + 1104471 commit dac8d34

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

application/app.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
from langchain.chains import VectorDBQAWithSourcesChain
1010
from langchain.prompts import PromptTemplate
1111

12+
# Redirect PosixPath to WindowsPath on Windows
13+
import platform
14+
if platform.system() == "Windows":
15+
import pathlib
16+
temp = pathlib.PosixPath
17+
pathlib.PosixPath = pathlib.WindowsPath
18+
1219
# loading the .env file
1320
dotenv.load_dotenv()
1421

0 commit comments

Comments
 (0)