aboutsummaryrefslogtreecommitdiffstats
path: root/test/reader/image/load_nef.py
blob: 02be470dd6982e075b31928ca3004ccafefe604c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

# standard imports
import os

# external imports
import requests

# constants
IMAGE_URL = 'http://igsor.net/eik7AhvohghaeN5.nef'

## code ##

def get():
    """Download a raw test image."""
    target = os.path.join(os.path.dirname(__file__), 'testimage.nef')
    if not os.path.exists(target):
        with open(target, 'wb') as ofile:
            ans = requests.get(IMAGE_URL)
            ofile.write(ans.content)



## EOF ##