From 1d8900dc196e419d775b840d8c8c041e577f69cd Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Wed, 1 Oct 2014 23:56:54 +0200 Subject: OS X: write a qt.conf file --- admin/osx/macdeployqt.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/admin/osx/macdeployqt.py b/admin/osx/macdeployqt.py index fe2c9c20b..ca826aa4d 100755 --- a/admin/osx/macdeployqt.py +++ b/admin/osx/macdeployqt.py @@ -93,6 +93,12 @@ binaries = [i for i in glob(os.path.join(bundle_dir, 'Contents', 'MacOS', "*")) fixed_libraries = [] fixed_frameworks = [] +def WriteQtConf(): + print "Writing qt.conf..." + with open(os.path.join(resources_dir, 'qt.conf'), 'w') as f: + f.write("[Paths]\nPlugins = PlugIns\n"); + f.close() + def GetBrokenLibraries(binary): #print "Checking libs for binary: %s" % binary output = subprocess.Popen(['otool', '-L', binary], stdout=subprocess.PIPE).communicate()[0] @@ -321,3 +327,4 @@ for command in commands: p = subprocess.Popen(command) os.waitpid(p.pid, 0) +WriteQtConf() -- cgit v1.2.3