dictation-toolbox / natlink

Natlink provides the interface between Dragon and python
Other
25 stars 17 forks source link

scripts like natlinkconfig_gui may not be in path #146

Closed dougransom closed 1 year ago

dougransom commented 1 year ago

Regardless of whether python is installed for all or one user, we never really know where Scripts are going to be installed.

At install time, for the current user, we should add Scripts to the path in every case (installed python for current user or all users).


 >>> import sysconfig as s
>>> s.get_path("scripts")
'C:\\Users\\doug\\AppData\\Local\\Programs\\Python\\Python310-32\\Scripts
```'
LexiconCode commented 1 year ago

The initial reasoning why it's not included is because another python install might be utilizing path other than what's used by the speech recognition stack. Therefore, shortcuts were created to launch the GUI/CLI which are under the natlink start menu.

I'm not really seeing much an advantage to adding it to path since users have access to those shortcuts.

Other software might utilize the scripts directory so we could add a shortcut to open up to the scripts in the command prompt so they can execute scripts as required. That way forward to avoids scripts on path.

dougransom commented 1 year ago

Ok seems reasonable to close. I think it is more a python install issue.

dougransom commented 1 year ago

It is a python issue. https://github.com/python/cpython/issues/90126