File:  [ELWIX - Embedded LightWeight unIX -] / gpl / axl / check-python-dir.py
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Fri Feb 17 12:50:02 2012 UTC (12 years, 4 months ago) by misho
Branches: axl, MAIN
CVS tags: HEAD, AXL0_6_7
version 0.6.7

    1: #!/usr/bin/python
    2: 
    3: import sys
    4: 
    5: directory_to_check = sys.argv[1]
    6: for directory in sys.argv:
    7:     if directory_to_check == directory:
    8:         print "ok"
    9:         sys.exit (0)
   10: 
   11: 
   12: print "Unable to find directory %s into sys.path, this install directory will fail" % directory_to_check
   13: sys.exit(0)
   14: 
   15: 
   16: 
   17: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>