diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2012-11-19 12:23:44 -0800 |
---|---|---|
committer | Nicholas Corgan <nick.corgan@ettus.com> | 2012-11-19 12:23:44 -0800 |
commit | 1bf31032162c5fcf83364bb2b94255ed2c739d73 (patch) | |
tree | 02d890d5d22f61121748f1fab14e7f805d3f98d8 /host/utils/uhd_images_downloader.py.in | |
parent | b65a3924808b48e170042f1f8ca416bd985a852f (diff) | |
parent | eaadc6e89a6bc99e5c1006c7d2aabc1dd7934178 (diff) | |
download | uhd-1bf31032162c5fcf83364bb2b94255ed2c739d73.tar.gz uhd-1bf31032162c5fcf83364bb2b94255ed2c739d73.tar.bz2 uhd-1bf31032162c5fcf83364bb2b94255ed2c739d73.zip |
Merge branch 'maint'
Diffstat (limited to 'host/utils/uhd_images_downloader.py.in')
-rw-r--r-- | host/utils/uhd_images_downloader.py.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/host/utils/uhd_images_downloader.py.in b/host/utils/uhd_images_downloader.py.in index a57f9dc48..8c8d2df81 100644 --- a/host/utils/uhd_images_downloader.py.in +++ b/host/utils/uhd_images_downloader.py.in @@ -38,7 +38,7 @@ if __name__ == "__main__": #Command line options parser = OptionParser() - parser.add_option("--install-location", type="string", default="@CMAKE_INSTALL_PREFIX@/share/uhd/images", help="Set custom install location for images, [default=%default]") + parser.add_option("--install-location", type="string", default="", help="Set custom install location for images") parser.add_option("--buffer-size", type="int", default=8192, help="Set download buffer size, [default=%default]",) (options, args) = parser.parse_args() @@ -52,6 +52,8 @@ if __name__ == "__main__": #Configuring image destination if options.install_location != "": images_dir = options.install_location + elif os.environ.get("UHD_IMAGES_DIR") != "" and os.environ.get("UHD_IMAGES_DIR") != None: + images_dir = os.environ.get("UHD_IMAGES_DIR") else: images_dir = "@CMAKE_INSTALL_PREFIX@/share/uhd/images" |