Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5d2e1b0be | ||
|
|
d3031952bf |
@@ -3,7 +3,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="XtendR",
|
name="XtendR",
|
||||||
version="0.1.2",
|
version="0.1.3",
|
||||||
packages=find_packages(),
|
packages=find_packages(),
|
||||||
install_requires=[],
|
install_requires=[],
|
||||||
author="Jan Lerking",
|
author="Jan Lerking",
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import os
|
|||||||
import json
|
import json
|
||||||
from xtendr.xtendrbase import XtendRBase
|
from xtendr.xtendrbase import XtendRBase
|
||||||
|
|
||||||
__version__ = "0.1.2"
|
__version__ = "0.1.3"
|
||||||
|
|
||||||
class XtendRSystem:
|
class XtendRSystem:
|
||||||
"""Plugin system to manage plugins.
|
"""Plugin system to manage plugins.
|
||||||
@@ -12,7 +12,7 @@ class XtendRSystem:
|
|||||||
Example:
|
Example:
|
||||||
>>> system = XtendRSystem()
|
>>> system = XtendRSystem()
|
||||||
>>> system.version()
|
>>> system.version()
|
||||||
XtendR v0.1.2
|
XtendR v0.1.3
|
||||||
>>> system.attach("example_plugin") # Assuming 'example_plugin/example_plugin.json' exists
|
>>> system.attach("example_plugin") # Assuming 'example_plugin/example_plugin.json' exists
|
||||||
>>> system.run("example_plugin")
|
>>> system.run("example_plugin")
|
||||||
ExamplePlugin is running!
|
ExamplePlugin is running!
|
||||||
@@ -34,7 +34,7 @@ class XtendRSystem:
|
|||||||
print(f"Plugin '{name}' is already attached.")
|
print(f"Plugin '{name}' is already attached.")
|
||||||
return
|
return
|
||||||
|
|
||||||
plugin_path = os.path.join(os.getcwd(), self.pluginpath, name)
|
plugin_path = os.path.join(os.getcwd(), self.pluginspath, name)
|
||||||
info_path = os.path.join(plugin_path, name + ".json")
|
info_path = os.path.join(plugin_path, name + ".json")
|
||||||
print(plugin_path + "\n" + info_path)
|
print(plugin_path + "\n" + info_path)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user