Jump to content
Acidham

How to get e.g. 'alfred_workflow_cache' dir with python?

Recommended Posts

I am trying to switch from AS to python and started to migrate some of my workflows. In AS it was easy to get 'alfred_workflow_cache' dir by using shell command. But how can this be achieved with python? I found on danishe page to use os.getenv('alfred_workflow_cache') but it returns None (NoneType) .

Share this post


Link to post
36 minutes ago, Acidham said:

use os.getenv('alfred_workflow_cache') but it returns None (NoneType)

 

 Then you're doing something wrong. Please post the broken workflow, so we can see what it is.

Share this post


Link to post

Is it possible because I am using External Script in Script Filter? I am need to run my script on Python3.7 therefore I thought external script will work better. 

 

Attached test wf without using External Script. The issue stays the same

https://db.tt/QenwLHNNkc

Edited by Acidham

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×