summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Glüpker <git@wgmd.de>2016-08-06 10:40:02 +0200
committerAndré Glüpker <git@wgmd.de>2016-08-06 10:40:02 +0200
commit2da10b84685df5c0078299d962a1a3ac66515150 (patch)
tree48be90132ac6a814f50a40e916fd2a290c6182ab
parent89a29e89478eb0a13230623e6806643f09b715ea (diff)
download9kwpyqt-2da10b84685df5c0078299d962a1a3ac66515150.tar.gz
9kwpyqt-2da10b84685df5c0078299d962a1a3ac66515150.tar.bz2
9kwpyqt-2da10b84685df5c0078299d962a1a3ac66515150.zip
Use real path.
This resolves correctly, when using symlinks.
-rwxr-xr-x9kwpyqt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/9kwpyqt.py b/9kwpyqt.py
index c2ca068..047db9c 100755
--- a/9kwpyqt.py
+++ b/9kwpyqt.py
@@ -12,7 +12,7 @@ from PyQt5.QtGui import QPixmap, QImage
from PyQt5.QtMultimedia import QSound
from PyQt5.QtNetwork import QNetworkAccessManager, QNetworkRequest, QNetworkReply
-THIS_DIR = os.path.dirname(os.path.abspath(__file__))
+THIS_DIR = os.path.dirname(os.path.realpath(__file__))
class ExtendedQLabel(QLabel):
clicked = pyqtSignal(int, str)