Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide temp file path for plugins use #66

Open
hasii2011 opened this issue Feb 1, 2023 · 0 comments
Open

Provide temp file path for plugins use #66

hasii2011 opened this issue Feb 1, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@hasii2011
Copy link
Owner

    @classmethod
    def getTempFilePath(cls, fileName: str) -> str:

        if PyutPreferences().useDebugTempFileLocation is True:
            fqFileName: str = f'{PyutUtils.getBasePath()}{osSep}{fileName}'
        else:
            tempDir: str = gettempdir()
            fqFileName = f'{tempDir}{osSep}{fileName}'

        return fqFileName
@hasii2011 hasii2011 added the enhancement New feature or request label Feb 1, 2023
@hasii2011 hasii2011 self-assigned this Feb 1, 2023
@hasii2011 hasii2011 added this to the Version 1.2.0 milestone Sep 26, 2023
@hasii2011 hasii2011 modified the milestones: Version 2.2.0, Version 2.3.0 Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant