aboutsummaryrefslogtreecommitdiffstats
path: root/python-packages/order_utils/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'python-packages/order_utils/setup.py')
-rw-r--r--python-packages/order_utils/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python-packages/order_utils/setup.py b/python-packages/order_utils/setup.py
index 4d5d69de1..ba11fb349 100644
--- a/python-packages/order_utils/setup.py
+++ b/python-packages/order_utils/setup.py
@@ -63,7 +63,8 @@ class CleanCommandExtension(clean):
# delete all .pyc files
for root, _, files in walk("."):
for file in files:
- if file[-4:] == ".pyc":
+ (_, extension) = path.splitext(file)
+ if extension == '.pyc':
remove(path.join(root, file))