File: globalinfo.py

package info (click to toggle)
yafray 0.0.9+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,856 kB
  • ctags: 4,334
  • sloc: cpp: 26,560; python: 418; makefile: 208; sh: 118
file content (15 lines) | stat: -rw-r--r-- 345 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from types import *

package='yafray'
version='0.0.9'
config_file='config.h'

class staticMetaClass(type):
	def __new__(cls, classname, bases, cdict):
		for k,i in cdict.items():
			if type(i) is FunctionType : cdict[k] = staticmethod(i)
		return type.__new__(cls,classname,bases,cdict)

class library(object):
	__metaclass__ = staticMetaClass