mirror of
https://github.com/azaion/gps-denied-onboard.git
synced 2026-04-22 16:06:36 +00:00
10 lines
244 B
Python
10 lines
244 B
Python
# flake8: noqa
|
|
import os
|
|
import sys
|
|
|
|
if sys.version_info[:2] >= (3, 0):
|
|
def exec_file_wrapper(fpath, g_vars, l_vars):
|
|
with open(fpath) as f:
|
|
code = compile(f.read(), fpath, 'exec')
|
|
exec(code, g_vars, l_vars)
|