On Jun 10, 8:00 am, rh0dium <steven.kl...@gmail.com> wrote:
> Apparently there is a problem with the if statement???

Try restructuring the if as a ternary condition:

import os, site; smsc = os.environ.get("TECHROOT", "/home/tech"); smsc
= smsc if os.path.isdir(smsc) else "/home/tech"; site.addsitedir
(os.path.join(smsc, "tools/python/Linux/%arch/lib/python2.5/site-
packages"))
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to