IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 22, 2019, 2:30:49 PM (7 years ago)
Author:
fairlamb
Message:

fixed calling as main + tests, removed argsparse from most

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ipp-259_genericise_backups/tools/backups/utils/generic_utils.py

    r40912 r40962  
    22import os.path as path
    33import shutil
    4 
    54from distutils.dir_util import copy_tree
    65
    7 import backups.utils.subprocess_utils as sub_utils
    8 from backups.utils.errors import ValidationError
     6from .subprocess_utils import simple_unix_wrapper
     7from .errors import ValidationError
    98
    109
     
    118117                command_and_args = ["mv", fp, destination_dirs[i]]
    119118                # shutil.move(fp, destination_dirs[i])
    120                 sub_utils.simple_unix_wrapper(command_and_args)
     119                simple_unix_wrapper(command_and_args)
    121120        except IOError as e:
    122121            print("IOError copying: ", e.filename, e.filename2)
Note: See TracChangeset for help on using the changeset viewer.