Forum

Author Topic: Script run via cmd with additional parameters  (Read 4549 times)

PAPA2137

  • Newbie
  • *
  • Posts: 8
    • View Profile
Script run via cmd with additional parameters
« on: July 28, 2017, 01:58:21 AM »
Hello,
is it possible to run python script for photoscan via cmd (photoscan.exe -r script.py) with additional parameters for python scipt ( I would like to pass additional configuration for processing). Is it possible to achive?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15465
    • View Profile
Re: Script run via cmd with additional parameters
« Reply #1 on: July 28, 2017, 11:44:32 AM »
Hello PAPA2137,

You can add arguments after the path to the script file to the command line and access them, for example, via sys.argv.
Best regards,
Alexey Pasumansky,
Agisoft LLC