Python Forum
A bash script that is a hack to enable very easy Python Imports
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A bash script that is a hack to enable very easy Python Imports
#3
You don't need bash for that.

If you want to import foo you can scan for foo.py and add its full path to the PYTHONPATH.
All this can be done in try/except block.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Messages In This Thread
RE: A bash script that is a hack to enable very easy Python Imports - by wavic - Aug-04-2018, 06:10 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SeePy and Loge - easy and fast dynamic report generation with Python lucke 1 3,901 Dec-10-2020, 07:58 PM
Last Post: lucke
  script to check bash scripts Skaperen 3 2,758 Sep-19-2019, 10:26 PM
Last Post: Skaperen
Lightbulb Script broke with Python 3 / improve script for printing aspecteleven 4 4,607 Feb-22-2019, 12:23 PM
Last Post: buran
  bash to python: keep.py Skaperen 0 2,810 Apr-08-2017, 07:27 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020