forked from microsoft/vscode-python-devicesimulator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython_constants.py
More file actions
55 lines (36 loc) · 1.51 KB
/
Copy pathpython_constants.py
File metadata and controls
55 lines (36 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
ACTIVE_DEVICE_FIELD = "active_device"
ADAFRUIT_DRIVE_NAME = "CIRCUITPY"
DEPEND_ERR = 'The required dependencies aren\'t downloaded. Please use CTRL+SHIFT+P to open the command palette and select "Device Simulator Express: Install Extension Dependencies".'
DEVICE_NOT_IMPLEMENTED_ERROR = "Device not implemented."
ENABLE_TELEMETRY = "enable_telemetry"
EXEC_COMMAND = "exec"
ERROR_SENDING_EVENT = "Error trying to send event to the process : "
ERROR_TRACEBACK = "\n\tTraceback of code execution : \n"
ERROR_NO_FILE = "Error : No file was passed to the process to execute.\n"
ADAFRUIT_LIBRARY_NAME = "adafruit_circuitplayground"
MICROPYTHON_LIBRARY_NAME = "micropython"
LINUX_OS = "linux"
MAC_OS = "darwin"
MOUNT_COMMAND = "mount"
NO_ADAFRUIT_DEVICE_DETECTED_ERROR_TITLE = (
"No Adafruit device (Circuit Playground Express or Clue) detected"
)
NO_ADAFRUIT_DEVICE_DETECTED_ERROR_DETAIL = (
"Could not find drive with name 'CIRCUITPYTHON'. Detected OS: {}"
)
NO_MICROBIT_DETECTED_ERROR_TITLE = "No micro:bit detected"
NOT_SUPPORTED_OS = 'The OS "{}" not supported.'
NOT_IMPLEMENTED_ERROR = "This method is not implemented by the simulator"
STATE_FIELD = "state"
UTF_FORMAT = "utf-8"
WINDOWS_OS = "win32"
DEFAULT_PORT = "5577"
CPX = "CPX"
MICROBIT = "micro:bit"
CLUE = "CLUE"
CLUE_DIR = "clue"
CIRCUITPYTHON = "base_circuitpython"
CODE_START_MSG_CLUE = "soft reboot\ncode.py output:"
CODE_FINISHED_MSG_CLUE = "\nCode done running. Waiting for reload."