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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...