-
Snippet for the directory portion my pixiv config is as follows:
Is it possible to have gallery-dl use a different directory structure if it's out of a certain working directory? E.g., if running out of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can access the current working directory with "pixiv":
{
"directory":
{
"__import__('os').getcwd() == 'D:\\Downloads'": ["{category}"],
"": ["{category}", "{user[id]}"]
}
} Alternatively, you could use |
Beta Was this translation helpful? Give feedback.
You can access the current working directory with
os.getcwd()
. Using__import__
to get theos
module and conditional format strings gets youAlternatively, you could use
globals
to make theos.getcwd()
result available in a more readable way.