Skip to content

Commit

Permalink
Fixed incorrect PMVS binary path
Browse files Browse the repository at this point in the history
  • Loading branch information
stuarta0 committed Aug 3, 2019
1 parent 23bd804 commit 4ddef6a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pmvs/load.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,11 @@ def mkdir(path):


def load(properties, data, *args, **kwargs):
#def bundle2pmvs(bin_path, bundle_path, target_dir, pmvs_options):
osname = platform.system().lower()
binpath = os.path.join(os.path.dirname(os.path.realpath(__file__)), osname)
ext = '.exe' if osname == 'windows' else ''

options_path = prepare_workspace(properties, data)
os.chdir(os.path.dirname(options_path))
subprocess.call([os.path.join(binpath, 'pmvs2{}'.format(ext)), '.{}'.format(os.sep), os.path.basename(options_path), ])

binpath = get_binpath_for_module(os.path.realpath(__file__))
subprocess.call([get_binary_path(binpath, 'pmvs2'), '.{}'.format(os.sep), os.path.basename(options_path), ])

model = os.path.join('models', 'reconstruction.ply')
if os.path.exists(model) and properties.import_points:
Expand Down

0 comments on commit 4ddef6a

Please sign in to comment.