Commit 22d0d0fd authored by ussrhero's avatar ussrhero

fixed bug #4

parent 4526f7c1
......@@ -3,7 +3,7 @@
#define PYKDEXT_VERSION_MAJOR 2
#define PYKDEXT_VERSION_MINOR 0
#define PYKDEXT_VERSION_SUBVERSION 0
#define PYKDEXT_VERSION_BUILDNO 18
#define PYKDEXT_VERSION_BUILDNO 19
#define __VER_STR2__(x) #x
#define __VER_STR1__(x) __VER_STR2__(x)
......
......@@ -201,17 +201,25 @@ selectVersion(
PCSTR args
)
{
Options opts(args);
try
{
Options opts(args);
int majorVersion = opts.pyMajorVersion;
int minorVersion = opts.pyMinorVersion;
int majorVersion = opts.pyMajorVersion;
int minorVersion = opts.pyMinorVersion;
getPythonVersion(majorVersion, minorVersion);
getPythonVersion(majorVersion, minorVersion);
if ( opts.pyMajorVersion == majorVersion && opts.pyMinorVersion == minorVersion )
{
defaultMajorVersion = majorVersion;
defaultMinorVersion = minorVersion;
}
if ( opts.pyMajorVersion == majorVersion && opts.pyMinorVersion == minorVersion )
}
catch (std::exception &e)
{
defaultMajorVersion = majorVersion;
defaultMinorVersion = minorVersion;
printString(client, DEBUG_OUTPUT_ERROR, e.what());
}
return S_OK;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment