Python Forum
calling external function with arguments
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
calling external function with arguments
#6
(Jul-04-2023, 11:18 PM)Pedroski55 Wrote: sys.path.append('/home/pedro/myPython/myModules/')
@Pedroski55 you could write this line in a (new?) file named usercustomize.py in the directory returned by site.getusersitepackages()
This would spare you the effort to write this line in all your scripts.

Also the PATH variable is for executable programs, not for Python modules.
Reply


Messages In This Thread
RE: calling external function with arguments - by Gribouillis - Jul-05-2023, 07:39 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why doesn't calling a parent constructor work with arbitrary keyword arguments? PurposefulCoder 4 1,008 Jun-24-2023, 02:14 PM
Last Post: deanhystad
  Calling a function (which accesses a library) from another file mouse9095 4 864 Jun-07-2023, 08:55 PM
Last Post: deanhystad
Sad Iterate randint() multiple times when calling a function Jake123 2 2,127 Feb-15-2022, 10:56 PM
Last Post: deanhystad
  Calling a class from a function jc4d 5 1,908 Dec-17-2021, 09:04 PM
Last Post: ndc85430
  'namespace' shorthand for function arguments? shadowphile 5 2,673 Aug-11-2021, 09:02 PM
Last Post: shadowphile
  Checking the number of arguments a function takes Chirumer 3 2,244 Jul-06-2021, 04:56 PM
Last Post: Chirumer
  [Solved] TypeError when calling function Laplace12 2 2,960 Jun-16-2021, 02:46 PM
Last Post: Laplace12
  Possible to dynamically pass arguments to a function? grimm1111 2 2,251 Feb-21-2021, 05:57 AM
Last Post: deanhystad
  calling a function and argument in an input phillup7 3 2,679 Oct-25-2020, 02:12 PM
Last Post: jefsummers
  How to pass multiple arguments into function Mekala 4 2,504 Jul-11-2020, 07:03 AM
Last Post: Mekala

Forum Jump:

User Panel Messages

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