This has me confused as to why it does not work:
TNX
import os PARENT_DIR = '/Volumes/Sidekick/SEER/Trip' SOURCE_DIR = '/data/source' # first do as concatenation and show result OUT_DIR = PARENT_DIR + SOURCE_DIR Print(OUT_DIR)
Output:>> /Volumes/Sidekick/SEER/Trip/data/source <<
# Now, do using os.path.join and show resultOUT1_DIR = os.path.join(PARENT_DIR, SOURCE_DIR) Print(OUT1_DIR)
Output:>> /data/source <<
Anyone have any ideas on what is happening?TNX
Larz60+ write Nov-07-2020, 08:49 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed this time. Please use going forward.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Fixed this time. Please use going forward.