summaryrefslogtreecommitdiffstats
path: root/host/lib/transport
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2010-04-30 11:11:09 -0700
committerJosh Blum <josh@joshknows.com>2010-04-30 11:11:09 -0700
commit29ea5f89b6f52dd5ad7fb0173ef5699f9c5f4ebf (patch)
tree557ea5a852716707ecfae03d2083dd7de3f954ce /host/lib/transport
parente837c65eb2b49f8fc2516f4eba45eafaa9b7b76b (diff)
parent333937760305f9c7c8dfb1db95f4821a800ce043 (diff)
downloaduhd-29ea5f89b6f52dd5ad7fb0173ef5699f9c5f4ebf.tar.gz
uhd-29ea5f89b6f52dd5ad7fb0173ef5699f9c5f4ebf.tar.bz2
uhd-29ea5f89b6f52dd5ad7fb0173ef5699f9c5f4ebf.zip
Merge branch 'reg_maps'
Diffstat (limited to 'host/lib/transport')
-rwxr-xr-xhost/lib/transport/gen_vrt.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/host/lib/transport/gen_vrt.py b/host/lib/transport/gen_vrt.py
index 38a394dee..9a57c83c3 100755
--- a/host/lib/transport/gen_vrt.py
+++ b/host/lib/transport/gen_vrt.py
@@ -200,15 +200,11 @@ void vrt::unpack(
}
"""
-import os
import sys
from Cheetah.Template import Template
def parse_tmpl(_tmpl_text, **kwargs):
return str(Template(_tmpl_text, kwargs))
-def safe_makedirs(path):
- not os.path.isdir(path) and os.makedirs(path)
if __name__ == '__main__':
- safe_makedirs(os.path.dirname(sys.argv[1]))
open(sys.argv[1], 'w').write(parse_tmpl(TMPL_TEXT, file=__file__))