Python Forum
importing a module given a path to the file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
importing a module given a path to the file
#9
i still like to write config files in Python. so, i'd like to have some kind of support for that. it needs to have a way to be controlled for security in cases where the config or data it uses comes from untrusted sources like a web query. advantages include:

1. config settings can have relations between each other such as a number setting that is 3 times plus 72 more than another number setting or a string that is the same as part of another.

2. the ease of a multi-line string that triple-quoting has.

3. accessing information from the file system or other files to establish settings.

4. the ability to do calculations that ordinary config files cannot do.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
RE: importing a module given a path to the file - by Skaperen - Nov-04-2023, 07:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  max component length of file path name Skaperen 1 1,132 Jun-19-2022, 04:03 AM
Last Post: Larz60+
  file system path representation Skaperen 7 3,756 Mar-03-2021, 02:12 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