← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dc-plugin-sdk/trunk] Rev 26: Some clarifications in the documentation

 

------------------------------------------------------------
revno: 26
committer: Fredrik Ullner <ullner@xxxxxxxxx>
branch nick: dc-plugin-sdk
timestamp: Sun 2014-06-29 19:06:46 +0200
message:
  Some clarifications in the documentation
modified:
  Doc/Python.txt
  Examples/Python-Skeleton/copy.bat
  Examples/Python-Skeleton/info.xml


--
lp:dc-plugin-sdk
https://code.launchpad.net/~dcplusplus-team/dc-plugin-sdk/trunk

Your team Dcplusplus-team is subscribed to branch lp:dc-plugin-sdk.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dc-plugin-sdk/trunk/+edit-subscription
=== modified file 'Doc/Python.txt'
--- Doc/Python.txt	2014-06-29 16:50:07 +0000
+++ Doc/Python.txt	2014-06-29 17:06:46 +0000
@@ -1,10 +1,18 @@
 Edit Libraries/PythonPlugin/version.h with the correct plugin information there. This information will be used on installation.
+
+Edit Libraries/PythonPlugin/PythonPlugin.vcxproj to use the correct Python version. Change any corresponding paths for Python as well.
+
 Compile Libraries/PythonPlugin/PythonPlugin.vcxproj in Release (does not work in Debug).
+
 Edit Examples/Python-Skeleton/info.xml with the correct plugin information there. This information will be used during runtime.
+
 The file Examples/Python-Skeleton/MyPlugin.py is the Python plugin: edit this accordingly. If another file name shall be used, change the File reference in the info.xml.
+
 Copy the following files to a separate directory "MyPlugin" (or run "copy.bat"):
 	Libraries/PythonPlugin/Release/PythonPlugin.dll
 	Libraries/PyPlugin.DataTypes/* (all files)
 	Examples/Python-Skeleton/info.xml
 	Examples/Python-Skeleton/MyPlugin.xml
+	C:/Windows/SysWOW64/Python27.dll (or whatever version you are using)
+
 Zip the files to "MyPlugin.zip" and then change the name of the file to "MyPlugin.dcext".
\ No newline at end of file

=== modified file 'Examples/Python-Skeleton/copy.bat'
--- Examples/Python-Skeleton/copy.bat	2014-06-29 16:50:07 +0000
+++ Examples/Python-Skeleton/copy.bat	2014-06-29 17:06:46 +0000
@@ -1,5 +1,6 @@
 mkdir MyPlugin
-xcopy info.xml MyPlugin\
-xcopy MyPlugin.py MyPlugin\
-xcopy ..\..\Libraries\PythonPlugin\Release\PythonPlugin.dll MyPlugin\
-xcopy ..\..\Libraries\PyPlugin.DataTypes\* MyPlugin\
\ No newline at end of file
+xcopy /y info.xml MyPlugin\
+xcopy /y MyPlugin.py MyPlugin\
+xcopy /y ..\..\Libraries\PythonPlugin\Release\PythonPlugin.dll MyPlugin\
+xcopy /y ..\..\Libraries\PyPlugin.DataTypes\* MyPlugin\
+xcopy /y C:\Windows\SysWOW64\Python27.dll MyPlugin\
\ No newline at end of file

=== modified file 'Examples/Python-Skeleton/info.xml'
--- Examples/Python-Skeleton/info.xml	2014-06-29 16:08:52 +0000
+++ Examples/Python-Skeleton/info.xml	2014-06-29 17:06:46 +0000
@@ -28,14 +28,16 @@
 	<Website>N/A</Website>
 	<Plugin Platform="pe-x86">PythonPlugin.dll</Plugin>
 	<Files>
-    <File Platform="pe-x86">__init__.py</File>
-    <File Platform="pe-x86">DataTypes.py</File>
-    <File Platform="pe-x86">DCPluginBase.py</File>
-    <File Platform="pe-x86">DCPluginSinkProxy.py</File>
-    <File Platform="pe-x86">Enumerations.py</File>
-    <File Platform="pe-x86">IDCPlugin.py</File>
-    <File Platform="pe-x86">IDCPluginSink.py</File>
+    		<File Platform="pe-x86">__init__.py</File>
+    		<File Platform="pe-x86">DataTypes.py</File>
+    		<File Platform="pe-x86">DCPluginBase.py</File>
+    		<File Platform="pe-x86">DCPluginSinkProxy.py</File>
+    		<File Platform="pe-x86">Enumerations.py</File>
+    		<File Platform="pe-x86">IDCPlugin.py</File>
+    		<File Platform="pe-x86">IDCPluginSink.py</File>
+
+		<File Platform="pe-x86">Python27.dll</File>
   
-    <File Platform="pe-x86">MyPlugin.py</File>
+    		<File Platform="pe-x86">MyPlugin.py</File>
 	</Files>
 </dcext>