From 24768ff140d4b65f00787e6771c997b0dda4f5a2 Mon Sep 17 00:00:00 2001 From: Jason Watkins Date: Tue, 5 May 2015 14:47:39 -0700 Subject: [PATCH] Renamed Python client file to decrease ambiguity. - File and class name no longer conflict. - Better matches the structure of Java client. --- Python/src/{xplaneConnect.py => xpc.py} | 0 Python/xplaneConnect.pyproj | 7 +++++-- TestScripts/Python Tests/Tests.py | 2 +- TestScripts/Python Tests/Tests.pyproj | 3 +-- 4 files changed, 7 insertions(+), 5 deletions(-) rename Python/src/{xplaneConnect.py => xpc.py} (100%) diff --git a/Python/src/xplaneConnect.py b/Python/src/xpc.py similarity index 100% rename from Python/src/xplaneConnect.py rename to Python/src/xpc.py diff --git a/Python/xplaneConnect.pyproj b/Python/xplaneConnect.pyproj index bc9ff8a..0919359 100644 --- a/Python/xplaneConnect.pyproj +++ b/Python/xplaneConnect.pyproj @@ -5,7 +5,7 @@ 2.0 3c7a940d-17c8-4e91-882f-9bc8b1d2f54b . - src/XPlaneConnect.py + src\xpc.py . @@ -24,7 +24,10 @@ false - + + + Code + diff --git a/TestScripts/Python Tests/Tests.py b/TestScripts/Python Tests/Tests.py index fc98c26..ac6b1b6 100644 --- a/TestScripts/Python Tests/Tests.py +++ b/TestScripts/Python Tests/Tests.py @@ -3,7 +3,7 @@ import unittest import imp import time -xpc = imp.load_source('xplaneConnect', '../../Python/src/xplaneConnect.py') +import xpc class XPCTests(unittest.TestCase): """Tests the functionality of the XPlaneConnect class.""" diff --git a/TestScripts/Python Tests/Tests.pyproj b/TestScripts/Python Tests/Tests.pyproj index d39f8ab..c1626b5 100644 --- a/TestScripts/Python Tests/Tests.pyproj +++ b/TestScripts/Python Tests/Tests.pyproj @@ -6,8 +6,7 @@ 6931ebb2-4e01-4c5a-86b6-668c0e75051b . Tests.py - - + ..\..\Python\src\ . . Tests