# "Import guard" in julia

**URL:** <https://discourse.julialang.org/t/import-guard-in-julia/1505>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 16, 2017, 4:52am UTC](https://discourse.julialang.org/t/import-guard-in-julia/1505 "2017-01-16T04:52:51Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tkelman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkelman/32/692_2.png) [@tkelman](https://discourse.julialang.org/u/tkelman)\
**Post date:** [January 16, 2017, 6:56am UTC](https://discourse.julialang.org/t/import-guard-in-julia/1505/4 "2017-01-16T06:56:42Z")

</div>

Try something like `if PROGRAM_FILE == @ __FILE__ ` ?

---

_[View the full topic](https://discourse.julialang.org/t/import-guard-in-julia/1505)._
