From d28fd94fd61df748b565071a3a653f5c607c6a11 Mon Sep 17 00:00:00 2001 From: ericremoreynolds Date: Thu, 30 Oct 2014 14:59:23 +0100 Subject: [PATCH] fix small bug --- addin/xlpython/xlpyserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addin/xlpython/xlpyserver.py b/addin/xlpython/xlpyserver.py index 0319815..0990b3a 100644 --- a/addin/xlpython/xlpyserver.py +++ b/addin/xlpython/xlpyserver.py @@ -10,9 +10,9 @@ import sys import os pywintypes_filename = "pywintypes%d%d.dll" % (sys.version_info[0], sys.version_info[1]) -pywintypes_found = _win32sysloader.GetModuleFilename(filename) +pywintypes_found = _win32sysloader.GetModuleFilename(pywintypes_filename) if not pywintypes_found: - pywintypes_found = _win32sysloader.LoadModule(os.path.join(sys.prefix, 'lib', 'site-packages', 'win32', filename)) + pywintypes_found = _win32sysloader.LoadModule(os.path.join(sys.prefix, 'lib', 'site-packages', 'win32', pywintypes_filename)) # Import necessary modules import types