Skip to content

Instantly share code, notes, and snippets.

@myaut
Created January 23, 2015 08:39
Show Gist options
  • Save myaut/c0fb34d30d9d084731ef to your computer and use it in GitHub Desktop.
Save myaut/c0fb34d30d9d084731ef to your computer and use it in GitHub Desktop.
kdevelop-incpaths.py
from PyQt4 import QtCore
import sys
PROJECTS = ['lib/libtsload', 'lib/libtsjson', 'lib/libtsfile', 'lib/libtscommon', 'lib/libtsagent',
'lib/libhostinfo', 'lib/libtsobj', 'cmd/swat-import', 'cmd/tsgenuuid', 'cmd/tsloadd',
'cmd/tsfutil', 'cmd/tsexperiment', 'cmd/tsgenmodsrc', 'cmd/tshostinfo']
BASEID = 1
for projid, proj in enumerate(PROJECTS):
path = '/pool/devel/TSLoad/tsload/agent/' + proj + '/include'
buf = QtCore.QByteArray()
qds = QtCore.QDataStream(buf, QtCore.QIODevice.WriteOnly)
l = QtCore.QStringList()
l.append(QtCore.QString(path))
qds << l
print '[CustomDefinesAndIncludes][ProjectPath%d]' % (projid + BASEID)
print 'Defines=\\x00\\x00\\x00\\x00'
print 'Includes=' + eval(repr(str(buf)).replace('\\', '\\\\'))
print 'Path=' + proj
print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment