kopia lustrzana https://github.com/OpenDroneMap/ODM
Merge pull request #1007 from mordka/master
Support for spaces in the project path
Former-commit-id: 0000cab754
pull/1161/head
commit
a5b8d0c64c
|
@ -17,13 +17,13 @@ class OSFMContext:
|
||||||
self.opensfm_project_path = opensfm_project_path
|
self.opensfm_project_path = opensfm_project_path
|
||||||
|
|
||||||
def run(self, command):
|
def run(self, command):
|
||||||
system.run('%s/bin/opensfm %s %s' %
|
system.run('%s/bin/opensfm %s "%s"' %
|
||||||
(context.opensfm_path, command, self.opensfm_project_path))
|
(context.opensfm_path, command, self.opensfm_project_path))
|
||||||
|
|
||||||
def export_bundler(self, destination_bundle_file, rerun=False):
|
def export_bundler(self, destination_bundle_file, rerun=False):
|
||||||
if not io.file_exists(destination_bundle_file) or rerun:
|
if not io.file_exists(destination_bundle_file) or rerun:
|
||||||
# convert back to bundler's format
|
# convert back to bundler's format
|
||||||
system.run('%s/bin/export_bundler %s' %
|
system.run('%s/bin/export_bundler "%s"' %
|
||||||
(context.opensfm_path, self.opensfm_project_path))
|
(context.opensfm_path, self.opensfm_project_path))
|
||||||
else:
|
else:
|
||||||
log.ODM_WARNING('Found a valid Bundler file in: %s' % destination_bundle_file)
|
log.ODM_WARNING('Found a valid Bundler file in: %s' % destination_bundle_file)
|
||||||
|
|
|
@ -42,7 +42,7 @@ class ODMMveStage(types.ODM_Stage):
|
||||||
|
|
||||||
# run mve makescene
|
# run mve makescene
|
||||||
if not io.dir_exists(tree.mve_views):
|
if not io.dir_exists(tree.mve_views):
|
||||||
system.run('%s %s %s' % (context.makescene_path, tree.mve_path, tree.mve), env_vars={'OMP_NUM_THREADS': args.max_concurrency})
|
system.run('%s "%s" "%s"' % (context.makescene_path, tree.mve_path, tree.mve), env_vars={'OMP_NUM_THREADS': args.max_concurrency})
|
||||||
|
|
||||||
self.update_progress(10)
|
self.update_progress(10)
|
||||||
|
|
||||||
|
@ -119,7 +119,7 @@ class ODMMveStage(types.ODM_Stage):
|
||||||
retry_count = 1
|
retry_count = 1
|
||||||
while retry_count < 10:
|
while retry_count < 10:
|
||||||
try:
|
try:
|
||||||
system.run('%s %s %s' % (context.dmrecon_path, ' '.join(dmrecon_config), tree.mve), env_vars={'OMP_NUM_THREADS': args.max_concurrency})
|
system.run('%s "%s" "%s"' % (context.dmrecon_path, ' '.join(dmrecon_config), tree.mve), env_vars={'OMP_NUM_THREADS': args.max_concurrency})
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if str(e) == "Child returned 134" or str(e) == "Child returned 1":
|
if str(e) == "Child returned 134" or str(e) == "Child returned 1":
|
||||||
|
|
Ładowanie…
Reference in New Issue