# Having trouble to run a file outside the directory

**URL:** <https://discourse.julialang.org/t/having-trouble-to-run-a-file-outside-the-directory/26381>\
**Category:** General Usage\
**Created:** [July 15, 2019, 10:25am UTC](https://discourse.julialang.org/t/having-trouble-to-run-a-file-outside-the-directory/26381 "2019-07-15T10:25:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tosalonijain](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tosalonijain/32/3624_2.png) [@tosalonijain](https://discourse.julialang.org/u/tosalonijain)\
**Post date:** [July 15, 2019, 10:25am UTC](https://discourse.julialang.org/t/having-trouble-to-run-a-file-outside-the-directory/26381/1 "2019-07-15T10:25:24Z")

</div>

I have an internal package that I have developed. Now, I want to use that package in other files. I am doing:

```julia
include("Package.jl")

```

But even after that I am not able to use the modalities of my package. I am only able to do that while I am working inside the package.  
Please let me know, what can be done. Thank you.

---

<div class="post-metadata">

**Author:** ![mohamed82008](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mohamed82008/32/18171_2.png) [@mohamed82008](https://discourse.julialang.org/u/mohamed82008)\
**Post date:** [July 15, 2019, 10:35am UTC](https://discourse.julialang.org/t/having-trouble-to-run-a-file-outside-the-directory/26381/2 "2019-07-15T10:35:16Z")

</div>

You can run `]dev path_to_pkg`, then `using pkg_name`. Then it will be visible to Julia’s package loader. The path is the one ending with the name of the package, before `src`. I am assuming your package folder has the proper structure from the docs, e.g. src folder, main file, etc. [Code Loading · The Julia Language](https://docs.julialang.org/en/v1/manual/code-loading/#Package-directories-1)

---

<div class="post-metadata">

**Author:** ![pixel27](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pixel27/32/8902_2.png) [@pixel27](https://discourse.julialang.org/u/pixel27)\
**Post date:** [July 15, 2019, 12:48pm UTC](https://discourse.julialang.org/t/having-trouble-to-run-a-file-outside-the-directory/26381/3 "2019-07-15T12:48:57Z")

</div>

Not sure if this is your issue, but what hit me between including modules with `include` vs a package was the `using` command:

```julia
# Actual package
using Foo

# Module with include
using .Foo

```
