Browse Source

get configuration from .env file

Richard Köhl 1 năm trước cách đây
mục cha
commit
519ba1e389
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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)