Discussion:
[Pydev-users] How to run a Python file without the .py extension in Aptana?
inhahe
2015-05-22 16:49:32 UTC
Permalink
I'm trying to run Limnoria (a fork of Supybot, an IRC bot written in
Python) in Aptana, but the name of the main Python file for
Supybot/Limnoria doesn't have an extension, it's just "supybot". When I try
to run it in Aptana, it just loads it in Firefox. I can't rename it to .py
because when I do that it incorrectly tries to import itself instead of the
Supybot library. How can I run the file?
Fabio Zadrozny
2015-05-23 22:51:01 UTC
Permalink
Hi there,

Well, in PyDev you can just open the file with the PyDev editor (i.e.:
right-click > open with > PyDev editor) and press F9 with the editor open
(as you'd run any file). Still, I know Aptana has an older version of
PyDev, so, I can't really attest that it'll work (but this definitely works
in the latest version).

Cheers,

Fabio
Post by inhahe
I'm trying to run Limnoria (a fork of Supybot, an IRC bot written in
Python) in Aptana, but the name of the main Python file for
Supybot/Limnoria doesn't have an extension, it's just "supybot". When I try
to run it in Aptana, it just loads it in Firefox. I can't rename it to .py
because when I do that it incorrectly tries to import itself instead of the
Supybot library. How can I run the file?
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Pydev-users mailing list
https://lists.sourceforge.net/lists/listinfo/pydev-users
Loading...