How to use the pyinstaller.buildtests.import.relimp.relimp.relimp2.__file__ function in pyinstaller

To help you get started, we’ve selected a few pyinstaller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Lithium95 / ConTroll_Remote_Access_Trojan / pyinstaller / buildtests / import / relimp / relimp1.py View on Github external
from __future__ import absolute_import

name = 'relimp.relimp1'

from . import relimp2 as upper
from . relimp import relimp2 as lower

assert upper.name == 'relimp.relimp2'
assert lower.name == 'relimp.relimp.relimp2'

if upper.__name__ == lower.__name__:
    raise SystemExit("Imported the same module")

if upper.__file__ == lower.__file__:
    raise SystemExit("Imported the same file")