Skip to content

Commit

Permalink
Exception prevention checks
Browse files Browse the repository at this point in the history
  • Loading branch information
meee1 committed Jul 27, 2023
1 parent b339d69 commit 20ccfe2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GCSViews/ConfigurationView/ConfigSerialInjectGPS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,8 @@ private void dg_basepos_RowsRemoved(object sender, DataGridViewRowsRemovedEventA
if (baseposList.Count == 0)
return;

baseposList.RemoveAt(e.RowIndex);
if(e.RowIndex < baseposList.Count)
baseposList.RemoveAt(e.RowIndex);

saveBasePosList();
}
Expand Down
3 changes: 3 additions & 0 deletions NoFly/NoFly.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public static void Scan()
if (!Settings.Instance.GetBoolean("ShowNoFly", true))
return;

if (!Directory.Exists(directory))
return;

var files = Directory.GetFiles(directory, "*.kmz");

foreach (var file in files)
Expand Down
19 changes: 19 additions & 0 deletions Scripts/debugenv.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import sys
print (sys.version_info)
import site;
print(site.getsitepackages())
import math
print("start")

import sysconfig;
print(sysconfig.get_paths()["purelib"])

print(site.USER_SITE)

from distutils.sysconfig import get_python_lib;
print(get_python_lib())

print(dir(sys))
print(dir(math))

print("end")

0 comments on commit 20ccfe2

Please sign in to comment.