mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-04-11 09:02:03 -07:00
Allow passing throught version restrictions through environment variables
This commit is contained in:
parent
9f6d55f39b
commit
ac3fe24aec
1 changed files with 3 additions and 2 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Camoufox version constants.
|
Camoufox version constants.
|
||||||
"""
|
"""
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
class CONSTRAINTS:
|
class CONSTRAINTS:
|
||||||
|
|
@ -8,8 +9,8 @@ class CONSTRAINTS:
|
||||||
The minimum and maximum supported versions of the Camoufox browser.
|
The minimum and maximum supported versions of the Camoufox browser.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
MIN_VERSION = 'beta.19'
|
MIN_VERSION = os.getenv("CAMOUFOX_MIN_VERSION", 'beta.19')
|
||||||
MAX_VERSION = '1'
|
MAX_VERSION = os.getenv("CAMOUFOX_MAX_VERSION", '1')
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def as_range() -> str:
|
def as_range() -> str:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue