Skip to content

Commit 0876687

Browse files
committed
fix get_replication_topology to work in linux
1 parent bce4a61 commit 0876687

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pyravendb/connection/requests_factory.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import json
1313
import hashlib
1414
import base64
15+
import os
1516
from pyravendb.tools.utils import Utils
1617
from threading import Timer, Lock
1718

@@ -213,7 +214,8 @@ def get_replication_topology(self):
213214
with self.lock:
214215
hash_name = hashlib.md5(
215216
"{0}/{1}".format(self._primary_url, self._primary_database).encode('utf-8')).hexdigest()
216-
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)
217219
try:
218220
with open(topology_file, 'r') as f:
219221
self.topology = json.loads(f.read())

0 commit comments

Comments
 (0)