1. Prometheus Research, LLC
  2. Prometheus
  3. pbbt

Commits

Kirill Simonov  committed 30f2893

Addded `__name__` and `__file__` to global namespace for Python tests.

  • Participants
  • Parent commits 9d6c131
  • Branches default

Comments (0)

Files changed (1)

File src/pbbt/std.py

View file
         sys.stderr = sys.stdout
         try:
             context = {}
+            context['__name__'] = '__main__'
+            context['__file__'] = filename
             context['__pbbt__'] = self.state
             exc_info = None
             try: