We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485ea48 commit ec7b111Copy full SHA for ec7b111
robotpy_build/tool.py
@@ -8,6 +8,7 @@
8
import pprint
9
import subprocess
10
import sys
11
+import types
12
import re
13
from urllib.request import Request, urlopen
14
from urllib.error import HTTPError
@@ -233,6 +234,9 @@ def run(self, args):
233
234
# TODO: could probably generate this from parsed code, but seems hard
235
ctx = {}
236
exec(f"from {compiled} import *", {}, ctx)
237
+ for k in list(ctx.keys()):
238
+ if isinstance(ctx[k], types.ModuleType):
239
+ del ctx[k]
240
241
relimport = self._rel(args.base, compiled)
242
0 commit comments