{ "cells": [ { "cell_type": "code", "execution_count": 9, "metadata": { "collapsed": true }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "/home\n" ] } ], "source": [ "import time\n", "import unittest\n", "import logging\n", "\n", "import os,sys\n", "cur_dir = os.path.dirname(os.path.abspath('.'))\n", "print(cur_dir)\n", "\n", "sys.meta_path.append('./plot')\n", "sys.meta_path.append('./plot/refill')" ] }, { "cell_type": "markdown", "source": [], "metadata": { "collapsed": false } }, { "cell_type": "code", "execution_count": 10, "outputs": [ { "ename": "AttributeError", "evalue": "'str' object has no attribute 'find_module'", "output_type": "error", "traceback": [ "\u001B[0;31m---------------------------------------------------------------------------\u001B[0m", "\u001B[0;31mAttributeError\u001B[0m Traceback (most recent call last)", "File \u001B[0;32m:939\u001B[0m, in \u001B[0;36m_find_spec\u001B[0;34m(name, path, target)\u001B[0m\n", "\u001B[0;31mAttributeError\u001B[0m: 'str' object has no attribute 'find_spec'", "\nDuring handling of the above exception, another exception occurred:\n", "\u001B[0;31mAttributeError\u001B[0m Traceback (most recent call last)", "Cell \u001B[0;32mIn [10], line 1\u001B[0m\n\u001B[0;32m----> 1\u001B[0m \u001B[38;5;28;01mfrom\u001B[39;00m \u001B[38;5;21;01mrefill\u001B[39;00m \u001B[38;5;28;01mimport\u001B[39;00m ChannelCumPainter\n", "File \u001B[0;32m:1027\u001B[0m, in \u001B[0;36m_find_and_load\u001B[0;34m(name, import_)\u001B[0m\n", "File \u001B[0;32m:1002\u001B[0m, in \u001B[0;36m_find_and_load_unlocked\u001B[0;34m(name, import_)\u001B[0m\n", "File \u001B[0;32m:941\u001B[0m, in \u001B[0;36m_find_spec\u001B[0;34m(name, path, target)\u001B[0m\n", "File \u001B[0;32m:915\u001B[0m, in \u001B[0;36m_find_spec_legacy\u001B[0;34m(finder, name, path)\u001B[0m\n", "\u001B[0;31mAttributeError\u001B[0m: 'str' object has no attribute 'find_module'" ] } ], "source": [ "from refill import ChannelCumPainter" ], "metadata": { "collapsed": false, "pycharm": { "name": "#%%\n" } } }, { "cell_type": "code", "execution_count": null, "outputs": [], "source": [], "metadata": { "collapsed": false, "pycharm": { "name": "#%%\n" } } } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 2 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython2", "version": "2.7.6" } }, "nbformat": 4, "nbformat_minor": 0 }