lanscape 1.3.1a1__py3-none-any.whl → 1.3.1a3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lanscape might be problematic. Click here for more details.

@@ -33,15 +33,18 @@ def open_webapp(url: str) -> bool:
33
33
  # macOS does not support chrome-style app mode via the generic
34
34
  # method. Fallback to the system "open" command which will use the
35
35
  # default browser.
36
- subprocess.run(["open", url], check=True)
37
- return True
36
+ cmd = """"$(mdfind 'kMDItemCFBundleIdentifier == "com.google.Chrome"' | head -n1)/Contents/MacOS/Google Chrome" """
37
+ cmd += f' --app="{url}"'
38
+ subprocess.run(cmd, check=True, shell=True)
38
39
 
39
- exe = get_default_browser_executable()
40
- if not exe:
41
- raise RuntimeError('Unable to find browser binary')
42
- log.debug(f'Opening {url} with {exe}')
40
+ else:
43
41
 
44
- subprocess.run(f'{exe} --app="{url}"')
42
+ exe = get_default_browser_executable()
43
+ if not exe:
44
+ raise RuntimeError('Unable to find browser binary')
45
+ log.debug(f'Opening {url} with {exe}')
46
+
47
+ subprocess.run(f'{exe} --app="{url}"')
45
48
 
46
49
  if time.time() - start < 2:
47
50
  log.debug(f'Unable to hook into closure of UI, listening for flask shutdown')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lanscape
3
- Version: 1.3.1a1
3
+ Version: 1.3.1a3
4
4
  Summary: A python based local network scanner
5
5
  Author-email: Michael Dennis <michael@dipduo.com>
6
6
  Project-URL: Homepage, https://github.com/mdennis281/py-lanscape
@@ -12,7 +12,7 @@ lanscape/libraries/runtime_args.py,sha256=ICX_JkOmqDQdewZNfRxJb9jMggDw1XqF5CxM9z
12
12
  lanscape/libraries/service_scan.py,sha256=jLU84ZoJnqSQbE30Zly2lm2zHrCGutNXjla1sEvp1hE,1949
13
13
  lanscape/libraries/subnet_scan.py,sha256=0LW_xdoL-PRp59rJr6r6pSL3LiXEO_SJnjdrgEF_pO8,13120
14
14
  lanscape/libraries/version_manager.py,sha256=v-IsZ7sYIsNRiraIRckGZthlyL0iTuscR6jF_o9LBK8,1720
15
- lanscape/libraries/web_browser.py,sha256=jtF__C2rTXhlZsp98l2l5Qa-V2nUA8egu-Ldvo5k8lQ,4800
15
+ lanscape/libraries/web_browser.py,sha256=geXxw5xv9y_XGwMc7k8agazGzqibpl2TkLfvTz-wE1k,4981
16
16
  lanscape/resources/mac_addresses/convert_csv.py,sha256=w3Heed5z2mHYDEZNBep3_hNg4dbrp_N6J54MGxnrq4s,721
17
17
  lanscape/resources/mac_addresses/mac_db.json,sha256=ygtFSwNwJzDlg6hmAujdgCyzUjxt9Di75J8SO4xYIs8,2187804
18
18
  lanscape/resources/ports/convert_csv.py,sha256=mWe8zucWVfnlNEx_ZzH5Vc3tJJbdi-Ih4nm2yKNrRN0,720
@@ -65,8 +65,8 @@ lanscape/ui/templates/scan/ip-table-row.html,sha256=ptY24rxJRaA4PEEQRDncaq6Q0ql5
65
65
  lanscape/ui/templates/scan/ip-table.html,sha256=ds__UP9JiTKf5IxCmTMzw--eN_yg1Pvn3Nj1KvQxeZg,940
66
66
  lanscape/ui/templates/scan/overview.html,sha256=FsX-jSFhGKwCxZGKE8AMKk328UuawN6O9RNTzYvIOts,1205
67
67
  lanscape/ui/templates/scan/scan-error.html,sha256=Q4eZM5ThrxnFaWOSTUpK8hA2ksHwhxOBTaVUCLALhyA,1032
68
- lanscape-1.3.1a1.dist-info/licenses/LICENSE,sha256=cCO-NbS01Ilwc6djHjZ7LIgPFRkRmWdr0fH2ysXKioA,1090
69
- lanscape-1.3.1a1.dist-info/METADATA,sha256=EnT4ZtH3JI88rf2QLLpUs9h8Uc1d-pOK0XB_8vK064g,2567
70
- lanscape-1.3.1a1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
71
- lanscape-1.3.1a1.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
72
- lanscape-1.3.1a1.dist-info/RECORD,,
68
+ lanscape-1.3.1a3.dist-info/licenses/LICENSE,sha256=cCO-NbS01Ilwc6djHjZ7LIgPFRkRmWdr0fH2ysXKioA,1090
69
+ lanscape-1.3.1a3.dist-info/METADATA,sha256=xHhw_GlkbSRLen_UqJjJlKDZvsB9Bk5pCv3wXtbYf3A,2567
70
+ lanscape-1.3.1a3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
71
+ lanscape-1.3.1a3.dist-info/top_level.txt,sha256=E9D4sjPz_6H7c85Ycy_pOS2xuv1Wm-ilKhxEprln2ps,9
72
+ lanscape-1.3.1a3.dist-info/RECORD,,