from __future__ import print_function
from __future__ import unicode_literals

import sys
from Registry import *

def rec(key, depth=0):
    print("\t" * depth + key.path())
    for subkey in key.subkeys():
        rec(subkey, depth + 1)

reg = Registry.Registry(sys.argv[1])
rec(reg.root())


@@ -122,17 +122,8 @@
 (key
-, depth=0
 ):%0A 
@@ -136,30 +136,113 @@
 nt(%22
-%5Ct%22 * depth + key.path
+KEY%7C%22 + key.path())%0A    for value in key.values():%0A        print(%22VALUE%7C%22 + key.path() + %22%7C%22 + value.name
 ())%0A
@@ -270,24 +270,24 @@
 .subkeys():%0A
+
         rec(
@@ -296,19 +296,8 @@
 bkey
-, depth + 1
 )%0A%0Ar

make printall.py print keys and values. printall.py now outputs BSV format