Commit bbe79007 authored by carlosperate's avatar carlosperate

Update start_cef.py to be able to run from wxcef_build folder.

parent 186ede98
...@@ -78,7 +78,7 @@ ServerCompilerSettings.ini ...@@ -78,7 +78,7 @@ ServerCompilerSettings.ini
TestTemp_* TestTemp_*
# CEF cache and log files # CEF cache and log files
/webcache webcache
cef_error.log cef_error.log
cef_debug.log cef_debug.log
......
...@@ -36,7 +36,14 @@ import codecs ...@@ -36,7 +36,14 @@ import codecs
import inspect import inspect
import platform import platform
import traceback import traceback
from ardublocklyserver.server import start_server try:
from ardublocklyserver.server import start_server
except ImportError:
file_dir = os.path.dirname(os.path.realpath(__file__))
package_dir = os.path.dirname(os.path.dirname(file_dir))
sys.path.insert(0, package_dir)
from ardublocklyserver.server import start_server
os.chdir(package_dir)
# Needed for packaging the application on self contained executable # Needed for packaging the application on self contained executable
__file__ = sys.argv[0] __file__ = sys.argv[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment