tests/wamp/project_files/wampconf.json
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 10 Mar 2017 17:09:48 +0300
changeset 1661 78f28f40bc10
parent 1444 c162f1b0fbac
child 2195 2cef75d036c2
permissions -rw-r--r--
wrap Beremiz startup code into separate launcher class

this should make it easier to make customized version of Beremiz IDE.
It's easy to add own splash, change version, add/disable extensions
and many other things.

For example:

[----- MyBeremiz.py ------]
#!/usr/bin/env python
from BeremizIDELauncher import BeremizIDELauncher

class MyBeremizIDELauncher(BeremizIDELauncher):
def __init__(self):
BeremizIDELauncher.__init__(self)
self.splashPath = self.Bpath("", "splash.png")

def ShowSplashScreen(self):
# comment next line to disable splash entirely
BeremizIDELauncher.ShowSplashScreen(self)

# change version
import version
version.app_version = "3.141-rc52"

def LoadExtensions(self):
# add/modifine list of extensions
# in self.extensions
BeremizIDELauncher.LoadExtensions(self)

if __name__ == '__main__':
beremiz = MyBeremizIDELauncher()
beremiz.Start()

[-------------------------]
1444
c162f1b0fbac Added forgotten wampconf.json in tests/wamp
Edouard Tisserant
parents:
diff changeset
     1
{
c162f1b0fbac Added forgotten wampconf.json in tests/wamp
Edouard Tisserant
parents:
diff changeset
     2
    "url":"ws://127.0.0.1:8888",
c162f1b0fbac Added forgotten wampconf.json in tests/wamp
Edouard Tisserant
parents:
diff changeset
     3
    "realm":"Automation",
c162f1b0fbac Added forgotten wampconf.json in tests/wamp
Edouard Tisserant
parents:
diff changeset
     4
    "ID":"wamptest",
c162f1b0fbac Added forgotten wampconf.json in tests/wamp
Edouard Tisserant
parents:
diff changeset
     5
    "password":"1234567890",
c162f1b0fbac Added forgotten wampconf.json in tests/wamp
Edouard Tisserant
parents:
diff changeset
     6
    "key":"ABCDEFGHIJ"
c162f1b0fbac Added forgotten wampconf.json in tests/wamp
Edouard Tisserant
parents:
diff changeset
     7
}