From f1da558a3e8b47ebfcc4049d34968c064d6121b5 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 6 Nov 2014 17:45:51 +0100 Subject: [PATCH] comment pack_fn --- webservice/bam/application/__init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webservice/bam/application/__init__.py b/webservice/bam/application/__init__.py index f655276..e66ae20 100644 --- a/webservice/bam/application/__init__.py +++ b/webservice/bam/application/__init__.py @@ -282,11 +282,14 @@ class FileAPI(Resource): @staticmethod def pack_fn(filepath, filepath_zip, paths_remap_relbase, report): + """ + 'paths_remap_relbase' is the project path, + we want all paths to be relative to this so we don't get server path included. + """ import os - assert(os.path.exists(filepath) and not os.path.isdir(filepath)) - import blendfile_pack + assert(os.path.exists(filepath) and not os.path.isdir(filepath)) print(" Source path:", filepath) print(" Zip path:", filepath_zip)