Skip to content

Commit c0898d1

Browse files
committed
updated python to 3.8 for linux boxes
1 parent 6a24433 commit c0898d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/objects/scripting/PythonScript.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ void PythonScript::drawObjectNodeConfig(){
250250

251251

252252
ImGuiEx::ObjectInfo(
253-
"Load and run a python ( 2.7 ) script files. You can type code with the Mosaic code editor, or with your default code editor. Scripts will refresh automatically on save.",
253+
"Load and run a python ( 2.7 on osx, 3.8 on linux ) script files. You can type code with the Mosaic code editor, or with your default code editor. Scripts will refresh automatically on save.",
254254
"https://mosaic.d3cod3.org/reference.php?r=python-script", scaleFactor);
255255

256256
// file dialog
@@ -297,7 +297,7 @@ void PythonScript::loadScript(string scriptFile){
297297
string tempstring = mosaicTableName+" = [];\n"+mosaicTableName+".append(0)";
298298
python.executeString(tempstring);
299299
// tabs and newlines are really important in python!
300-
tempstring = "def _updateMosaicData( i,data ):\n\t if len("+mosaicTableName+") < i:\n\t\t"+mosaicTableName+".append(0)\n\t elif 0 <= i < len("+mosaicTableName+"):\n\t\t"+mosaicTableName+"[i] = data\n";
300+
tempstring = "def _updateMosaicData( i,data ):\n\t if len("+mosaicTableName+") < i:\n\t\t "+mosaicTableName+".append(0)\n\t elif 0 <= i < len("+mosaicTableName+"):\n\t\t "+mosaicTableName+"[i] = data\n";
301301
python.executeString(tempstring);
302302

303303
// inject outgoing data list to mosaic as vector<float>

0 commit comments

Comments
 (0)