Returns the full path of a file within the profile directory. The profile directory is the folder where the machine’s configuration, settings, scripts, and other files are stored.
An optional relative path (or filename) can be provided, which is appended to the base profile directory path.
planetcnc.get_profile_path() planetcnc.get_profile_path(str)
#! /usr/bin/env python import planetcnc # Get the full path for a file "Settings.settings" within the profile directory. set_path = planetcnc.get_path_profile("Settings.settings") print("Settings path:", set_path ) # Or, get the profile directory itself: profile_dir = planetcnc.get_path_profile() print("Profile directory:", profile_dir)