mirror of https://github.com/n1nj4sec/pupy.git
Remove links to self
This commit is contained in:
parent
ad5494b6e9
commit
4965ed12bd
|
@ -235,7 +235,6 @@ class PupyPackageLoader:
|
||||||
mod = imp.new_module(fullname)
|
mod = imp.new_module(fullname)
|
||||||
mod.__name__ = fullname
|
mod.__name__ = fullname
|
||||||
mod.__file__ = 'pupy://{}'.format(self.path)
|
mod.__file__ = 'pupy://{}'.format(self.path)
|
||||||
mod.__loader__ = self
|
|
||||||
if self.is_pkg:
|
if self.is_pkg:
|
||||||
mod.__path__ = [mod.__file__.rsplit('/',1)[0]]
|
mod.__path__ = [mod.__file__.rsplit('/',1)[0]]
|
||||||
mod.__package__ = fullname
|
mod.__package__ = fullname
|
||||||
|
@ -249,7 +248,6 @@ class PupyPackageLoader:
|
||||||
mod = imp.new_module(fullname)
|
mod = imp.new_module(fullname)
|
||||||
mod.__name__ = fullname
|
mod.__name__ = fullname
|
||||||
mod.__file__ = 'pupy://{}'.format(self.path)
|
mod.__file__ = 'pupy://{}'.format(self.path)
|
||||||
mod.__loader__ = self
|
|
||||||
if self.is_pkg:
|
if self.is_pkg:
|
||||||
mod.__path__ = [mod.__file__.rsplit('/',1)[0]]
|
mod.__path__ = [mod.__file__.rsplit('/',1)[0]]
|
||||||
mod.__package__ = fullname
|
mod.__package__ = fullname
|
||||||
|
@ -267,7 +265,6 @@ class PupyPackageLoader:
|
||||||
if mod:
|
if mod:
|
||||||
mod.__name__=fullname
|
mod.__name__=fullname
|
||||||
mod.__file__ = 'pupy://{}'.format(self.path)
|
mod.__file__ = 'pupy://{}'.format(self.path)
|
||||||
mod.__loader__ = self
|
|
||||||
mod.__package__ = fullname.rsplit('.',1)[0]
|
mod.__package__ = fullname.rsplit('.',1)[0]
|
||||||
sys.modules[fullname] = mod
|
sys.modules[fullname] = mod
|
||||||
|
|
||||||
|
|
|
@ -82,7 +82,7 @@ except ImportError, e:
|
||||||
print 'Couldnt load pupy: {}'.format(e)
|
print 'Couldnt load pupy: {}'.format(e)
|
||||||
mod = imp.new_module("pupy")
|
mod = imp.new_module("pupy")
|
||||||
mod.__name__ = "pupy"
|
mod.__name__ = "pupy"
|
||||||
mod.__file__ = "<memimport>\\\\pupy"
|
mod.__file__ = "pupy://pupy"
|
||||||
mod.__package__ = "pupy"
|
mod.__package__ = "pupy"
|
||||||
sys.modules["pupy"] = mod
|
sys.modules["pupy"] = mod
|
||||||
mod.pseudo = True
|
mod.pseudo = True
|
||||||
|
|
Loading…
Reference in New Issue