mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
move pdf viewer behind feature flag
This commit is contained in:
committed by
Aleksei Kuzmin
parent
c1908147a9
commit
4b39d17e5f
@@ -189,9 +189,13 @@ def execute_stdout(argv, env=os.environ, cwd=None):
|
||||
def electron_gyp():
|
||||
SOURCE_ROOT = os.path.abspath(os.path.join(__file__, '..', '..', '..'))
|
||||
gyp = os.path.join(SOURCE_ROOT, 'electron.gyp')
|
||||
features_gyp = os.path.join(SOURCE_ROOT, 'features.gypi')
|
||||
obj = {}
|
||||
with open(gyp) as f:
|
||||
obj = eval(f.read());
|
||||
return obj['variables']
|
||||
obj = eval(f.read())['variables']
|
||||
with open(features_gyp) as g:
|
||||
obj.update(eval(g.read())['variables']['variables'])
|
||||
return obj
|
||||
|
||||
|
||||
def get_electron_version():
|
||||
|
||||
Reference in New Issue
Block a user