File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
- __version__ = "1.0.2 "
1
+ __version__ = "1.0.3 "
2
2
__author__ = "Daniel Schreij"
3
3
4
4
import QOpenScienceFramework .connection
Original file line number Diff line number Diff line change 26
26
from QOpenScienceFramework import connection as osf
27
27
# Event dispatcher and listeners
28
28
from QOpenScienceFramework .manager import ConnectionManager
29
+ from QOpenScienceFramework .compat import *
29
30
30
31
####### CONFIGURE THE CLIENT ID AND REDIRECT URI HERE. REGISTER AT OSF.IO ######
31
32
client_id = "<YOUR_CLIENT_ID_HERE>"
@@ -70,7 +71,7 @@ def __init__(self):
70
71
osf .settings .update (server_settings )
71
72
osf .create_session ()
72
73
73
- tmp_dir = tempfile .gettempdir ()
74
+ tmp_dir = safe_decode ( tempfile .gettempdir () )
74
75
tokenfile = os .path .join (tmp_dir , u"osf_token.json" )
75
76
# Create manager object
76
77
self .manager = ConnectionManager (tokenfile = tokenfile )
You can’t perform that action at this time.
0 commit comments