1

I am using the following code

import os
import glob


vae_checkpoints_path = r"../checkpoints/vae"
p = os.path.abspath(vae_checkpoints_path)
assert os.path.exists(p)
print(p)  # prints 'C:\\code\\EPMD\\Kodex\\Templates\\Testing\\Research\\checkpoints\\vae'
q = os.path.join(os.path.abspath(vae_checkpoints_path), r"/**/*.ckpt")

and q is now

C:/**/*.ckpt

Why is os.path.join eliminating the entire start of the path and how to fix it?

Gulzar
  • 23,452
  • 27
  • 113
  • 201

0 Answers0