mirror of https://github.com/n1nj4sec/pupy.git
Merge branch 'deathfantasy-modpath_fix2'
This commit is contained in:
commit
d8d19f7ee7
|
@ -114,7 +114,9 @@ class PupyClient(object):
|
|||
module_code=""
|
||||
with open(os.path.join(root,f),'rb') as fd:
|
||||
module_code=fd.read()
|
||||
modules_dic[os.path.join(root[len(search_path.rstrip(os.sep))+1:].replace("\\","/"),f)]=module_code
|
||||
modprefix = root[len(search_path.rstrip(os.sep))+1:]
|
||||
modpath = os.path.join(modprefix,f).replace("\\","/")
|
||||
modules_dic[modpath]=module_code
|
||||
package_found=True
|
||||
else: # loading a simple file
|
||||
for ext in [".py",".pyc",".pyd"]:
|
||||
|
|
Loading…
Reference in New Issue