summaryrefslogtreecommitdiff
path: root/Examples/python/import_packages/namespace_pkg/runme.py
blob: 54a8e4ee682651e5376bfb75c52d5388f5670f59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# These examples rely on namespace packages.  Don't
# run them for old python interpreters.
import os.path
import subprocess
import sys

testname = os.path.basename(os.path.dirname(os.path.abspath(__file__)))
print("Testing " + testname + " - namespace packages")

if sys.version_info < (3, 3, 0):
    print("  Not importing nstest as Python version is < 3.3")
    sys.exit(0)

import nstest

print("  Finished importing nstest")

nstest.main()