# Sending code to workers

**URL:** <https://discourse.julialang.org/t/sending-code-to-workers/6216>\
**Category:** General Usage\
**Tags:** macros, parallel\
**Created:** [October 3, 2017, 12:07pm UTC](https://discourse.julialang.org/t/sending-code-to-workers/6216 "2017-10-03T12:07:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Janis\_Erdmanis](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/janis_erdmanis/32/10869_2.png) [@Janis\_Erdmanis](https://discourse.julialang.org/u/Janis_Erdmanis)\
**Post date:** [October 3, 2017, 12:07pm UTC](https://discourse.julialang.org/t/sending-code-to-workers/6216/1 "2017-10-03T12:07:57Z")

</div>

As I want to keep everything as simple as possible, I figured out that I can send code to all Julia workers simply by

```julia
@eval @everywhere Base.include_string($(readstring(open("mycode.jl")))) 

```

and that works amazingly well! However this command leaves include statements. How could I generalize for all include statements which may be in mycode.jl and follow up files?
