Forum

Author Topic: Executing python script from command line using "-r"  (Read 5207 times)

tjs43

  • Newbie
  • *
  • Posts: 5
    • View Profile
Executing python script from command line using "-r"
« on: April 10, 2017, 03:04:49 AM »
Hey guys,

Per the version 1.3.1 update, I am trying to execute my python script from the command line (outside of the photoscan GUI) using the "-r" argument. What exactly do i type into terminal to execute my script (running a mac by the way)?

Thanks,
T

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15282
    • View Profile
Re: Executing python script from command line using "-r"
« Reply #1 on: April 10, 2017, 11:30:32 AM »
Hello tjs43,

Code: [Select]
PhotoScanPro.app/Contents/MacOS/PhotoScanPro -r "/var/tmp/script.py"At first full path to PhotoScanPro inside the application bundle, then "-r" then path to the script. Optionally you can also use arguments to be passed to the script.
Best regards,
Alexey Pasumansky,
Agisoft LLC

tjs43

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Executing python script from command line using "-r"
« Reply #2 on: April 10, 2017, 04:52:42 PM »
Thanks again Alexey, you've been really helpful!