Created
          November 19, 2018 21:31 
        
      - 
      
- 
        Save villares/1ff072dd0ce058065469b5a9c46075e5 to your computer and use it in GitHub Desktop. 
    Processing Python Mode sketch path
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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
  
            
Also: https://github.com/villares/py.processing-play/blob/master/file_IO/list_files_in_data_folder/list_files_in_data_folder.pyde