diff --git a/client/cli/bam.py b/client/cli/bam.py index 6d9b273..45cc34c 100755 --- a/client/cli/bam.py +++ b/client/cli/bam.py @@ -457,7 +457,7 @@ class bam_commands: @staticmethod def update(paths): # Load project configuration - cfg = bam_config.load(abort=True) + # cfg = bam_config.load(abort=True) # TODO(cam) multiple paths session_rootdir = bam_config.find_sessiondir(paths[0], abort=True) @@ -861,7 +861,6 @@ class bam_commands: # bytes needed for blendfile_path_remap API paths = [p.encode('utf-8') for p in paths] - if not os.path.exists(filepath_remap): fatal("Remap not started, run with 'start', (%r not found)" % filepath_remap) @@ -891,7 +890,6 @@ class bam_commands: fatal("remapping not started, nothing to do!") - # ----------------------------------------------------------------------------- # Argument Parser diff --git a/modules/bam_utils/system.py b/modules/bam_utils/system.py index cfe1e81..a0fdfde 100644 --- a/modules/bam_utils/system.py +++ b/modules/bam_utils/system.py @@ -91,4 +91,3 @@ def write_json_to_file(path, data): # optional (pretty) sort_keys=True, indent=4, separators=(',', ': '), ) - diff --git a/tests/test_cli.py b/tests/test_cli.py index de12a6a..954e5bd 100755 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1463,7 +1463,7 @@ class BamRemapTest(BamSimpleTestCase): # absolute path: (project relative) --> # checkout path: (relative to blend) blendfile_pair = ("shots/01/shot_01.blend", "new/deeply/nested/path/testme.blend") - images =( + images = ( ("maps/generic.png", "foobar/another.png"), ("shots/01/maps/special.png", "blah/image.png"), ) diff --git a/webservice/bam/application/__init__.py b/webservice/bam/application/__init__.py index 0784fb4..56f39be 100644 --- a/webservice/bam/application/__init__.py +++ b/webservice/bam/application/__init__.py @@ -99,7 +99,7 @@ class DirectoryAPI(Resource): parser = reqparse.RequestParser() # parser.add_argument('rate', type=int, help='Rate cannot be converted') parser.add_argument('path', type=str) - args = parser.parse_args() + # args = parser.parse_args() super(DirectoryAPI, self).__init__() def get(self, project_name): @@ -163,7 +163,7 @@ class FileAPI(Resource): parser.add_argument('arguments', type=str) parser.add_argument('files', type=werkzeug.datastructures.FileStorage, location='files') - args = parser.parse_args() + # args = parser.parse_args() super(FileAPI, self).__init__() @@ -373,7 +373,6 @@ class FileAPI(Resource): yield from blendfile_pack.pack( filepath.encode('utf-8'), filepath_zip.encode('utf-8'), mode='ZIP', paths_remap_relbase=paths_remap_relbase.encode('utf-8'), - # TODO(cam) this just means the json is written in the zip deps_remap=deps_remap, paths_remap=paths_remap, paths_uuid=paths_uuid, all_deps=all_deps, report=report,