# Behavior of cd() in Julia script

**URL:** <https://discourse.julialang.org/t/behavior-of-cd-in-julia-script/48532>\
**Category:** General Usage\
**Tags:** question\
**Created:** [October 17, 2020, 5:33am UTC](https://discourse.julialang.org/t/behavior-of-cd-in-julia-script/48532 "2020-10-17T05:33:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [October 17, 2020, 9:35am UTC](https://discourse.julialang.org/t/behavior-of-cd-in-julia-script/48532/2 "2020-10-17T09:35:45Z")

</div>

You may find this discussion helpfull:

> [@Include command inconsistent with isfile result](https://discourse.julialang.org/t/include-command-inconsistent-with-isfile-result/26578):
>
> I am having trouble to include a file. More precisely isfile(fi) returns true, but include(fi) errors ERROR: LoadError: could not open file C:\temp\a\SomePackage\src\src\file.jl I created an MWE here. I simply run julia --startup-file=no --track-allocation=user mwe\_include\_error.jl in PowerShell (from the src directory) Is this expected not to work? It is quite irritating that isfile returns true, but the include command fails.

In short, quoted from @Tamas_Papp

> [@Include command inconsistent with isfile result](https://discourse.julialang.org/t/include-command-inconsistent-with-isfile-result/26578/15):
>
> `include` operates relative to `@ __DIR__ ` , which has nothing to do with the “current directory”

---

_[View the full topic](https://discourse.julialang.org/t/behavior-of-cd-in-julia-script/48532)._
