# Executing a file

**URL:** <https://discourse.julialang.org/t/executing-a-file/23870>\
**Category:** New to Julia\
**Created:** [May 5, 2019, 2:45pm UTC](https://discourse.julialang.org/t/executing-a-file/23870 "2019-05-05T14:45:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wormmessi](https://avatars.discourse-cdn.com/v4/letter/w/839c29/32.png) [@wormmessi](https://discourse.julialang.org/u/wormmessi)\
**Post date:** [May 5, 2019, 2:45pm UTC](https://discourse.julialang.org/t/executing-a-file/23870/1 "2019-05-05T14:45:36Z")

</div>

Hello!  
I’m a new user on windows 10 and I have just installed Julia on my computer.  
So I’m trying to execute a file coming from a public github rep. Let’s call it awesomepackage.  
I opened the Julia command line and typed:  
using Pkg  
Pkg.add(“github address of the awesome package”)

THen it installed a lot of libraries without errors.  
Then i donwloaded the library on the git website.  
I tried to use:  
include(location of the julia script i want to execute)

in order to execute my file, however I have a lot of errors telling me to add libraries (and those libraries were already added when I used Pkg).  
So i guess I’m doing something wrong. Double-clicking on the julia file doesn’t work either.  
Any suggestion?

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![yakir12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yakir12/32/297_2.png) [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Post date:** [May 5, 2019, 3:25pm UTC](https://discourse.julialang.org/t/executing-a-file/23870/2 "2019-05-05T15:25:18Z")

</div>

You don’t need to include, just do a:

```julia
using AwesomePackage

```

---

<div class="post-metadata">

**Author:** ![wormmessi](https://avatars.discourse-cdn.com/v4/letter/w/839c29/32.png) [@wormmessi](https://discourse.julialang.org/u/wormmessi)\
**Post date:** [May 5, 2019, 6:04pm UTC](https://discourse.julialang.org/t/executing-a-file/23870/3 "2019-05-05T18:04:44Z")

</div>

Hello!

After the line:  
using AwesomePackage  
, what do I have to add in order to execute the file which is inside AwesomePackage?  
(suppose it is located in AwesomePackage/dir/Aweomsefile.jl)

Thank you in advance

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [May 5, 2019, 7:45pm UTC](https://discourse.julialang.org/t/executing-a-file/23870/4 "2019-05-05T19:45:16Z")

</div>

```julia
julia> using Dates

julia> dayname(3)
"Wednesday"

```

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [May 6, 2019, 6:56am UTC](https://discourse.julialang.org/t/executing-a-file/23870/5 "2019-05-06T06:56:28Z")

</div>

> [@wormmessi](#):
>
> what do I have to add in order to execute the file which is inside AwesomePackage?  
> (suppose it is located in AwesomePackage/dir/Aweomsefile.jl)

There is no exposed API for getting the location of a file relative to the package sources (it was removed deliberately, see [#417](https://github.com/JuliaLang/Pkg.jl/issues/417)). Package authors who want to expose file location usually define a mechanism for it using `@ __DIR__ `, but to say anything concrete one would need to see the package.
