biqqles / flint

A parser and API for Freelancer and its formats
https://github.com/biqqles/flint/wiki
Mozilla Public License 2.0
8 stars 2 forks source link

Init: paths #5

Closed dd84ai closed 3 years ago

dd84ai commented 3 years ago

when you try init flint in your own program

import flint as fl fl.set_install_path(YourPath) is not working due to some namespace error apparently but fl.paths.set_install_path(YourPath) works fine. P.S. Shell launches fine without the bug.

Detailed tracelog:

(venv) C:\Users\User\source\repos\FLDarknet\FLDarknet>python
Python 3.7.8 (tags/v3.7.8:4b47a5b6ba, Jun 28 2020, 08:53:46) [MSC v.1916 64 bit
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import flint as fl
>>> fl.set_install_path(r"C:\Freelancer")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\User\source\repos\FLDarknet\FLDarknet\venv\lib\site-packages\fl
int\__init__.py", line 46, in __getattr__
    if not paths.install:
AttributeError: module 'flint.paths' has no attribute 'install'