Features
Support
Community
Downloads
Buy
About
Forum
Home
Search
Login
Register
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
determine if script run from console or 'run script' dialog
« previous
next »
Print
Pages: [
1
]
Author
Topic: determine if script run from console or 'run script' dialog (Read 1202 times)
w28
Newbie
Posts: 11
determine if script run from console or 'run script' dialog
«
on:
June 13, 2018, 07:55:14 PM »
Is there a way to programmatically determine (from within a script) if a script is being run from the 'run script' dialog box or from the python console (using the 'run' command)?
Logged
Alexey Pasumansky
Agisoft Technical Support
Hero Member
Posts: 14813
Re: determine if script run from console or 'run script' dialog
«
Reply #1 on:
July 01, 2018, 07:13:48 PM »
Hello w28,
Do you mean to make script understand if it's being run from GUI or from the OS command-line in headless mode?
Logged
Best regards,
Alexey Pasumansky,
Agisoft LLC
Print
Pages: [
1
]
« previous
next »
Agisoft Metashape
»
Agisoft Metashape
»
Python and Java API
»
determine if script run from console or 'run script' dialog
Features
Support
Community
Downloads
Buy
About
Features
Support
Community
Downloads
Buy
About
Metashape presentation
(PDF, 5 Mb)