# Friendly reminder: don't use sketchPath() before setup()!

**URL:** <https://discourse.processing.org/t/friendly-reminder-dont-use-sketchpath-before-setup/24994>\
**Category:** Processing.py\
**Created:** [October 29, 2020, 2:14am UTC](https://discourse.processing.org/t/friendly-reminder-dont-use-sketchpath-before-setup/24994 "2020-10-29T02:14:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)\
**Post date:** [October 29, 2020, 2:14am UTC](https://discourse.processing.org/t/friendly-reminder-dont-use-sketchpath-before-setup/24994/1 "2020-10-29T02:14:07Z")

</div>

I always forget this, then I get desperate searching the forums and thinking I must be doing something wrong, and looking at older sketches where it worked just fine, jut to realize this:

```python
print(sketchPath('data')) # wrong!

def setup():
    print(sketchPath('data'))

```

Result:

```auto
/home/villares/processing-3.5.4/data <-this is wrong!
/home/villares/sketchbook/sketch_2020_10_28c_sketchPath/data

```

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b7241e2ba65a12f9a10bb510fe38ebaf3557364f.png)
