123456789101112131415161718192021222324252627282930313233 |
- import os
- import json
- import re
- import subprocess
- #import nibabel
- import shutil
- import sys
- import pydicom
- shome=os.path.expanduser('~studen')
- sys.path.insert(1,shome+'/software/src/orthancInterface')
- import orthancInterface
- import orthancFileBrowser
- fhome=os.path.expanduser('~')
- fconfig=os.path.join(fhome,'.labkey','network.json')
- onet=orthancInterface.orthancInterface()
- onet.init(fconfig)
- ofb=orthancFileBrowser.orthancFileBrowser(onet)
- uploadDir=os.path.join(fhome,'temp','testFiles')
- files=os.listdir(uploadDir)
- for f in files:
- fg=os.path.join(uploadDir,f)
- print(fg)
- ofb.upload(fg)
- print("Done")
-
|