Skip to content

Commit

Permalink
Converted LVP_INSTALLED Env Variable to check for local file
Browse files Browse the repository at this point in the history
  • Loading branch information
dovydasv2 committed Nov 7, 2024
1 parent 5909d35 commit 2f84c55
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion lumaviewpro.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@

PROTOCOL_DATA_DIR_NAME = "ProtocolData"

lvp_installed = True if os.getenv("LVP_INSTALLED", "True") == "True" else False
try:
with open("marker.lvpinstalled") as f:
lvp_installed = True
except:
lvp_installed = False

if windows_machine and (lvp_installed == True):
print("Machine-Type - WINDOWS")
Expand Down
6 changes: 5 additions & 1 deletion lvp_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@
except:
pass

lvp_installed = True if os.getenv("LVP_INSTALLED", "True") == "True" else False
try:
with open("marker.lvpinstalled") as f:
lvp_installed = True
except:
lvp_installed = False

if windows_machine and (lvp_installed == True):

Expand Down

0 comments on commit 2f84c55

Please sign in to comment.