Skip to content

Commit

Permalink
yet another upgrade of python scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverIce committed Jan 29, 2016
1 parent 61799dd commit dbd3cbc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion post-build/install_Distrib.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
bundlePlugin(mode)
bundleDevResources(mode)

print 'post-install finished'
print('post-install finished')
4 changes: 2 additions & 2 deletions post-build/jc_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(self, location):

self.location = location
self.lib = cdll.LoadLibrary(location);
#self.lib.JC_versionString.restype = ctypes.c_char_p
self.lib.JC_versionString.restype = ctypes.c_char_p
self.lib.JC_produceCode.argtypes = [ctypes.c_char_p]

@staticmethod
Expand All @@ -50,7 +50,7 @@ def produceCode(self, into):
self.lib.JC_produceCode(into.encode('utf-8'))

def versionString(self):
return self.lib.JC_versionString()
return self.lib.JC_versionString().decode('utf-8')

def runTests(self):
self.lib.JC_runTests()
Expand Down
2 changes: 1 addition & 1 deletion post-build/post-build.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<OptimizeReferences>true</OptimizeReferences>
</Link>
<PreBuildEvent>
<Command>python.exe install_Local.py $(Configuration)</Command>
<Command>python.exe install_Local.py $(Configuration) "C:\\Program Files\\Mod Organizer\\mods\\JContainers-v3.3A"</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Distrib|Win32'">
Expand Down

0 comments on commit dbd3cbc

Please sign in to comment.