diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-09-30 21:53:47 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-09-30 21:53:47 +0300 |
commit | 5d2bdc16aa26145fa60d04b13b7e98343d9890ab (patch) | |
tree | 5020a40c816504a16a6d0f0ef8b6ae4a7ee6fb72 /mesongui.py | |
parent | 8d90739ed7dd15fdc8bfa60fdcef94717777b85d (diff) | |
download | meson-5d2bdc16aa26145fa60d04b13b7e98343d9890ab.zip meson-5d2bdc16aa26145fa60d04b13b7e98343d9890ab.tar.gz meson-5d2bdc16aa26145fa60d04b13b7e98343d9890ab.tar.bz2 |
Gui tool works when installed now.
Diffstat (limited to 'mesongui.py')
-rwxr-xr-x | mesongui.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mesongui.py b/mesongui.py index 92580e0..f49a8a5 100755 --- a/mesongui.py +++ b/mesongui.py @@ -23,7 +23,7 @@ from PyQt5.QtCore import QAbstractItemModel, QModelIndex, QVariant, QTimer import PyQt5.QtCore import PyQt5.QtWidgets -priv_dir = os.path.split(os.path.abspath(__file__))[0] +priv_dir = os.path.split(os.path.abspath(os.path.realpath(__file__)))[0] class PathModel(QAbstractItemModel): def __init__(self, coredata): @@ -318,7 +318,7 @@ class MesonGui(): self.coredata_file = os.path.join(build_dir, 'meson-private/coredata.dat') self.build_file = os.path.join(build_dir, 'meson-private/build.dat') if not os.path.exists(self.coredata_file): - printf("Argument is not build directory.") + print("Argument is not build directory.") sys.exit(1) self.coredata = pickle.load(open(self.coredata_file, 'rb')) self.build = pickle.load(open(self.build_file, 'rb')) |