Skip to content

Perhaps globals could be configurable? #16

@leontristain

Description

@leontristain

Hi Mator,

I am currently working on python bindings for xedit-lib. One thing I noticed is that xedit-lib hardcodes ProgramPath global to the location of ParamsStr(0) (see here). This value seems to get used when constructing the path to the Skyrim.Hardcoded.dat files. As a result, to make unit tests pass (where the invoked command looks like pytest -v ..., which runs in python), I have to copy the Skyrim.Hardcoded.dat file to my %localappdata%\Programs\Python\Python37 folder. I imagine a regular python app may have the same issue.

You mentioned earlier on discord that the Hardcoded.dat files are going away soon, so I think for the time being I can wait for that. It'll still be a while before I feel that this python wrapper, or any python-based application I make with it, would be ready for release, and I think for me this is a release blocker but doesn't hinder me from development or testing for the time being. (Any thoughts or guidance would be greatly appreciated)

Making this post mostly because I'm now wondering whether some of these values in general could be made more configurable... perhaps through an optional environment variable override? Or to expose a SetGlobal method? Hence this post.

Thanks,
leontristain

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions