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

build warning: bnlcrl.utils: module references __file__ #2

Open
robnagler opened this issue Aug 17, 2016 · 1 comment
Open

build warning: bnlcrl.utils: module references __file__ #2

robnagler opened this issue Aug 17, 2016 · 1 comment
Assignees

Comments

@robnagler
Copy link
Contributor

This code is suspicious:

    script_path = os.path.dirname(os.path.realpath(__file__))

    # Fix for Jython:
    try:
        script_path = script_path.replace(
            os.path.join(format(os.environ['HOME']), '.jython-cache/cachedir/classes'),
            ''
@mrakitin
Copy link
Owner

I'll try to change it to the resources. Jython fix is not necessary anymore since there are lots of python libraries to import and Jython will probably not be used anymore.

@mrakitin mrakitin self-assigned this Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants