Skip to content

Instantly share code, notes, and snippets.

@villares
Created November 19, 2018 21:31
Show Gist options
  • Save villares/1ff072dd0ce058065469b5a9c46075e5 to your computer and use it in GitHub Desktop.
Save villares/1ff072dd0ce058065469b5a9c46075e5 to your computer and use it in GitHub Desktop.
Processing Python Mode sketch path
from os import listdir, path
sketch = sketchPath()
file = listdir(sketch)[0]
name = path.splitext(file)[0]
print(name)
from os import path
sketch = sketchPath()
folder = path.basename(sketch)
print(folder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment