Commits

Anonymous committed 4c879b6

Improvements to make.py.

Comments (0)

Files changed (1)

 import doozer
-import os
 
 project('pngxx')
 
-from doozerlib import proc, log
-from doozerlib.uniquelist import UniqueList
-
 # Variables
 flags = cfgvar('pngxx.flags', 'flags', description='list of abstract build flags (see doozer docs)')
 test_o_matic_root = cfgvar('test_o_matic.root', description='the path to test_o_matic')
     opt = lang_kit.opt(*libpng_flags)
 
     extra_includes = []
-    if not os.path.exists(libpng_root/'pnglibconf.h'):
+    if not (libpng_root/'pnglibconf.h').exists:
         extra_includes += [here/'src/3rd_party'] # pickup our pnglibconf.h
 
     opt.includes += extra_includes + [libpng_root] + z.includes