Skip to content

Commit

Permalink
Version 1.3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
kz26 committed Oct 20, 2017
1 parent 463e242 commit fd612cd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
@@ -1,6 +1,10 @@
Changelog
=========

1.3.9
-----
* [FIX] incorrect enumeration of settings file path in portable mode

1.3.8
-----
* [ENHANCEMENT] Remember more GUI state (https://github.com/kz26/dottorrent-gui/pull/21)
Expand Down
7 changes: 6 additions & 1 deletion dottorrentGUI/gui.py
Expand Up @@ -20,6 +20,11 @@

PIECE_SIZES = [None] + [2 ** i for i in range(14, 27)]

if getattr(sys, 'frozen', False):
_basedir = sys._MEIPASS
else:
_basedir = os.path.dirname(__file__)


class CreateTorrentQThread(QtCore.QThread):

Expand Down Expand Up @@ -161,7 +166,7 @@ def setupUi(self, MainWindow):

def getSettings(self):
portable_fn = PROGRAM_NAME + '.ini'
portable_fn = os.path.join(os.getcwd(), portable_fn)
portable_fn = os.path.join(_basedir, portable_fn)
if os.path.exists(portable_fn):
return QtCore.QSettings(
portable_fn,
Expand Down
2 changes: 1 addition & 1 deletion dottorrentGUI/version.py
@@ -1 +1 @@
__version__ = '1.3.8'
__version__ = '1.3.9'

0 comments on commit fd612cd

Please sign in to comment.