Skip to content

Instantly share code, notes, and snippets.

@heyswappy
Created August 1, 2020 21:23
Show Gist options
  • Save heyswappy/0a394ec12335c4ef97d112cb5a9ede9b to your computer and use it in GitHub Desktop.
Save heyswappy/0a394ec12335c4ef97d112cb5a9ede9b to your computer and use it in GitHub Desktop.
import os # import the operating-system module
base_path = "" # introduce base_path this is configurable
rel_path = "" # introduce relative path the path within your WORKING directory
final_path = os.path.join(base_path, rel_path) # use this path for your work
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment