Skip to content

Commit

Permalink
Fix typo and redirect stdout and stderr a bit earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
tlecomte committed Jan 17, 2016
1 parent 79809a1 commit 88f942a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions friture/analyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,16 @@ def main():
app = QApplication(sys.argv)

if platform.system() == "Darwin":
if hasattr(sys, "frozen"): #py2app
sys.stdout = open(os.path.expanduser("~/friture.out.txt"), "w")
sys.stderr = open(os.path.expanduser("~/friture.err.txt"), "w")

print("Applying Mac OS-specific setup")
# help the py2app-packaged application find the Qt plugins (imageformats and platforms)
pluginsPath = os.path.normpath(os.path.join(QApplication.applicationDirPath(), os.path.pardir, 'PlugIns'))
print("Adding the following to the Library paths: " + pluginsPath)
QApplication.addLibraryPath(pluginsPath)

if (hasattr(sys, "frozen"): #py2app
sys.stdout = open(os.path.expanduser("~/friture.out.txt"), "w")
sys.stderr = open(os.path.expanduser("~/friture.err.txt"), "w")

# Splash screen
pixmap = QPixmap(":/images/splash.png")
splash = QSplashScreen(pixmap)
Expand Down

0 comments on commit 88f942a

Please sign in to comment.