Skip to content

Commit 2dab1e1

Browse files
committed
Bump to 1.0.7
Fix another unicode decode error
1 parent 7e2b4fa commit 2dab1e1

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

QOpenScienceFramework/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.6"
1+
__version__ = "1.0.7"
22
__author__ = "Daniel Schreij"
33

44
import os

QOpenScienceFramework/widgets.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,9 @@ def __clicked_upload_file(self):
917917
# See if a previous folder was set, and if not, try to set
918918
# the user's home folder as a starting folder
919919
if not hasattr(self, 'last_open_destination_folder'):
920-
self.last_open_destination_folder = os.path.expanduser(safe_str("~"))
920+
self.last_open_destination_folder = safe_decode(
921+
os.path.expanduser(safe_str("~")),
922+
enc=sys.getfilesystemencoding())
921923

922924
file_to_upload = QtWidgets.QFileDialog.getOpenFileName(self,
923925
_("Select file for upload"),

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
This repository should contain everything you need to start off with connecting your python application to the Open Science Framework (https://osf.io). It offers python functions that translate to Open Science Framework API endpoints, and also a set of PyQt widgets (should work with both pyqt4 and pyqt5 thanks to qtpy) that are designed to display and interact with information obtained through the OSF API.
33

44
## Installation
5-
Make sure you have the following modules available (all should be easy to get with anaconda and/or pip
5+
Make sure you have the following modules available (all should be easy to get with anaconda and/or pip)
66

77
- pyqt4 or pyqt5 (https://www.riverbankcomputing.com/software/pyqt/intro)
88
- qtpy (https://github.com/spyder-ide/qtpy)

0 commit comments

Comments
 (0)