0

I am bit stuck with this below approach , trying to implement but not getting

I have 2 script : Script1.py and Script2.py

Script1.py contains all my written functions like below

Script1.py is present at path 1 : /d/demo/

def add2numner(a,b):
    ----
    ----

def sub2number(a,b):
    ----
    ----

Now Script2.py : placed at different path 2 : /d/temp/ABC/

Below is the way i am calling Script1.py in Script2.py and trying to import not working

from /d/demo/Script1.py import *
     
    # Calling function 
    add2number(2,4)

    # Calling function
    sun2number(4,2)

How to call the file and import all function present in that to other Script file present at different location ?

codeholic24
  • 808
  • 3
  • 17

0 Answers0