# How to load and call functions defined in a standalone Python script?

**URL:** <https://discourse.julialang.org/t/how-to-load-and-call-functions-defined-in-a-standalone-python-script/601>\
**Category:** General Usage\
**Tags:** pycall\
**Created:** [November 28, 2016, 12:45am UTC](https://discourse.julialang.org/t/how-to-load-and-call-functions-defined-in-a-standalone-python-script/601 "2016-11-28T00:45:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)\
**Post date:** [November 28, 2016, 1:11am UTC](https://discourse.julialang.org/t/how-to-load-and-call-functions-defined-in-a-standalone-python-script/601/2 "2016-11-28T01:11:29Z")

</div>

Just do what you would have done in python

```julia
julia> using PyCall

julia> push!(pyimport("sys")["path"], pwd());

julia> pyimport("a")[:foo]()
Hello world!
3

```

---

_[View the full topic](https://discourse.julialang.org/t/how-to-load-and-call-functions-defined-in-a-standalone-python-script/601)._
