# Execute consecutive scripts

**URL:** <https://discourse.julialang.org/t/execute-consecutive-scripts/137064>\
**Category:** General Usage\
**Tags:** question, scripting\
**Created:** [May 10, 2026, 7:20am UTC](https://discourse.julialang.org/t/execute-consecutive-scripts/137064 "2026-05-10T07:20:44Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [May 11, 2026, 8:51am UTC](https://discourse.julialang.org/t/execute-consecutive-scripts/137064/6 "2026-05-11T08:51:07Z")

</div>

> [@Chrysoberyl](#):
>
> I don’t think you can conditionally import a package.

Maybe package extensions could solve your issue elegantly.  
Tutorial:

> [@Quick tutorial on package extensions](https://discourse.julialang.org/t/quick-tutorial-on-package-extensions/130923):
>
> Hello! I was reading the documentation on package extensions and felt that I needed some more detailed instructions. I wrote this tutorial based on what I learned (only today, so this is surely not an exhaustive tutorial). Quick tutorial on package extensions A package can have modules that are conditionally loaded based on what other packages are loaded. These are called extensions. Goal In the below text, there will be a package MyPackage. It will have an extension module MyExt which should …

---

_[View the full topic](https://discourse.julialang.org/t/execute-consecutive-scripts/137064)._
