Sfoglia il codice sorgente

get configuration from .env file

Richard Köhl 1 anno fa
parent
commit
519ba1e389
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      capture.py

+ 3 - 1
capture.py

@@ -1,3 +1,5 @@
+import os
 from helper import save_screenshot
 
-save_screenshot("test")
+screenshot_address = os.getenv("SCREENSHOT_PATH")
+save_screenshot(screenshot_address)