From 93ddf8015db1a77f58b47a2f63978d978a36e6e5 Mon Sep 17 00:00:00 2001 From: Oleksii Shevchuk Date: Fri, 2 Dec 2016 17:24:05 +0200 Subject: [PATCH] Omit temporary files --- pupy/pupylib/PupyClient.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pupy/pupylib/PupyClient.py b/pupy/pupylib/PupyClient.py index 90e93fd4..0890d300 100644 --- a/pupy/pupylib/PupyClient.py +++ b/pupy/pupylib/PupyClient.py @@ -221,7 +221,10 @@ class PupyClient(object): for root, dirs, files in os.walk(os.path.join(search_path,start_path), followlinks=True): for f in files: if pure_python_only: - if f.endswith((".so",".pyd",".dll")): #avoid loosing shells when looking for packages in sys.path and unfortunatelly pushing a .so ELF on a remote windows + # avoid loosing shells when looking for packages in + # sys.path and unfortunatelly pushing a .so ELF on a + # remote windows + if f.endswith((".so",".pyd",".dll")) or f.startswith('.#'): continue module_code="" with open(os.path.join(root,f),'rb') as fd: