pillone / usntssearch

NZB Metasearch engine
pillone.github.io/usntssearch
263 stars 79 forks source link

OPENSHIFT path #69

Closed malkstar closed 11 years ago

malkstar commented 11 years ago

os.getenv('OPENSHIFT_DATA_DIR', '') seems to return the path where the script is run running ubuntu LTS 12.04

Example:

/ $ python /path/to/mega2.py

returns errors like "file not found vernum.num" from miscdefs.py's 'ChkVersion', when there's definitely the file in the mega2.py directory.

/path/to/ $ python mega2.py

works great.

I've fixed this in my build by replacing all instances to "/path/to/".

What IDE do you use? I could try pick up some fixes, I like the idea of this.

pillone commented 11 years ago

I just saw the thread on reddit. I fix this as soon as I get back

thanks for notifying me

malkstar commented 11 years ago

Brilliant cheers, it is good that reddit has this picked up, is a really great idea. There was also a path hardcoded to /opt/ussnt [default Unix path](sorry I am replying on my phone). On 10 Oct 2013 12:42, "pillone" notifications@github.com wrote:

I just saw the thread on reddit. I fix this as soon as I get back

thanks for notifying me

— Reply to this email directly or view it on GitHubhttps://github.com/pillone/usntssearch/issues/69#issuecomment-26046550 .

pillone commented 11 years ago

y, I think I broke that stuff on v0.44. I put the fix on 0.45

pillone commented 11 years ago

done. fix is in RC45 branch

malkstar commented 11 years ago

Cheers, I'll check on a vanilla install.