Mercurial > code > home > repos > light9
diff bin/run_local.py @ 2030:aeafe7d0b033
have bin/* run via pdm's python config
author | drewp@bigasterisk.com |
---|---|
date | Thu, 07 Apr 2022 01:07:54 -0700 |
parents | 7088d60fde7e |
children | 53dd7eb024c9 |
line wrap: on
line diff
--- a/bin/run_local.py Tue Apr 05 23:16:12 2022 -0700 +++ b/bin/run_local.py Thu Apr 07 01:07:54 2022 -0700 @@ -4,31 +4,10 @@ import sys, os, socket +from twisted.python.failure import Failure -def fixSysPath(): - root = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), - '..')) + '/' - sys.path = [ - root, - root + 'env/lib/python3.7', - root + 'env/lib/python3.7/plat-x86_64-linux-gnu', - root + 'env/lib/python3.7/lib-tk', - root + 'env/lib/python3.7/lib-old', - root + 'env/lib/python3.7/lib-dynload', - '/usr/lib/python3/dist-packages/', - '/usr/lib/python3.7', - # '/usr/lib/python3.7/plat-x86_64-linux-gnu', - # '/usr/lib/python3.7/lib-tk', - # root + 'env/local/lib/python3.7/site-packages', - # root + 'env/local/lib/python3.7/site-packages/gtk-2.0', - root + 'env/lib/python3.7/site-packages', - # root + 'env/lib/python3.7/site-packages/gtk-2.0', - ] - - -fixSysPath() - -from twisted.python.failure import Failure +# to support 'import light9' until I rearrange things better: +sys.path.append('.') try: import tkinter