We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce4a61 commit 0876687Copy full SHA for 0876687
pyravendb/connection/requests_factory.py
@@ -12,6 +12,7 @@
12
import json
13
import hashlib
14
import base64
15
+import os
16
from pyravendb.tools.utils import Utils
17
from threading import Timer, Lock
18
@@ -213,7 +214,8 @@ def get_replication_topology(self):
213
214
with self.lock:
215
hash_name = hashlib.md5(
216
"{0}/{1}".format(self._primary_url, self._primary_database).encode('utf-8')).hexdigest()
- topology_file = "{0}\\RavenDB_Replication_Information_For - {1}".format(tempfile.gettempdir(), hash_name)
217
+ topology_file = "{0}{1}RavenDB_Replication_Information_For - {2}".format(tempfile.gettempdir(), os.path.sep,
218
+ hash_name)
219
try:
220
with open(topology_file, 'r') as f:
221
self.topology = json.loads(f.read())
0 commit comments